The court’s conservatives backed Trump’s request to enforce rules a lower court had lifted for the pandemic.