A federal judge blocked a Trump administration policy that allowed the deportation of migrants to countries other than their own without a chance to argue their removal in immigration court.