An upstate New York judge threw out a lawsuit Monday that aimed to release a group of state prisoners over COVID-19 concerns.