The injunction challenges New York prisons to comply with laws limiting solitary confinement and protecting inmates.