The decision comes as advocates and defense attorneys have said for weeks that the federal Bureau of Prisons has been under-testing people held in the city’s federal lockups in Brooklyn and Manhattan. The ruling also follows a separate judicial order that required the BOP to report how many inmates tested positive for the virus as well as how many inmates were tested in total.