The ruling means that more than 1,000 inmates need to be released or transferred to another facility so they can provide measures to protect against COVID-19.