The ruling marks a major blow to a central pillar of the White House’s strategy for tackling Covid-19.