An upstate New York trial judge has turned aside a motion from the state attorney general's office to dismiss a class-action lawsuit filed on behalf of inmates who allege the Department of Corrections and Community Supervision hasn't been complying with a recently enacted law that sets limits on the use of solitary confinement.

The complaint was filed in Albany County on behalf of a class of inmates by attorneys for the New York Civil Liberties Union and the Prisoners' Legal Services of New York in Buffalo.