The family’s history with the city’s child welfare agency included evidence of corporal punishment and abuse.