A federal judge on Wednesday found New York City in contempt over the conditions at its jails, saying the levels of "unconstitutional danger” have not improved for inmates or staff in the nine years since litigation began.