A federal judge has found the city of Flint, Michigan, in contempt for failing to comply with instructions for replacing old lead pipes.