US judge says that rapid deportation of migrants to countries other than their own violates due process.