I believe Trump is on solid Constitutional ground and that every court decision against him will ultimately get before the Trump nominated and installed SCOTUS, where it will finally be decided THEY are not the law makers !
Too many courts all over the country act and opine as if they are Congress passing a law and stupid public school "educated" buy it.
I tend to agree....in addition, the courts seem to be erroneously conferring US civil rights on foreign nationals.
On a purely cynical transactional level, if foreign nationals are entitlted to the same rights as Americans then they should be subject to US tax law from the moment they set foot on our soil.