Lawsuit alleges inmates at a state-run prison were terrorized, sexually humiliated and treated with violence