For years, the state has faced accusations that it did little to prevent rampant violence and sexual abuse in its prisons. A proposed federal court order would allow the state to phase in reforms.