The court has allowed the administration to fire tens of thousands of government workers, discharge transgender troops, end protections for hundreds of thousands of migrants from war-torn countries and fundamentally shift power from Congress to the president.