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.