Gov. Andrew Cuomo signed a New York bill Wednesday that will restrict the use of solitary confinement.

The passage of the bill, known as the HALT Solitary Confinement Act, is a success for criminal justice reform advocates who compare the punishment to torture.