A long-running crisis of overstuffed jails and backlogged courts has reached a critical level.