A California man has been charged with killing his wife and 11-year-old daughter after he walked into a police station this week and confessed to the crime, investigators say.