The ruling follows a lawsuit filed earlier this month by the Lawyers' Committee for Civil Rights of San Francisco and other groups, and points to "overcrowded" cells with multiple detainees sleeping "one foot of space between them, in order to avoid sleeping next to the open toilet."