A lower federal court on Wednesday imposed restrictions on deporting migrants to countries other than their own.