A federal judge blocked President Donald Trump’s plan to ramp up deportations of undocumented migrants under a centuries-old immigration law.