Several police unions sued for the names of individuals infected with COVID-19, saying they needed to be able to protect themselves