The Courts have no jurisdiction in the foreign countries. They can weep and wail and gnash their teeth, but they will not be able to stop Trump on this matter.
This is what Mr. Trump should have ordered in the first place. It would have taken longer to slow the influx, but it would have been untouchable. He should do it now.