Really?
Has that been determined in any court?
The courts are likely to side with the president in cases where national security is involved but that hasn't happened yet.
Do you think that the courts will say that it was lawful to deny green card holders the right to re-enter the country?