A federal judge had blocked the administration’s plan to remove the temporary protected status of more than 300,000 immigrants.