He said the wording was legal.  The intent was not. And how do we know this? Because Bigmouth went around telling everyone that his intent was to bar Muslims which is illegal; even his slimeball buddy Giuliani confirmed that was his intent.  Read some Constitutional law. You'll find lots of cases where laws are struck down because the intent and/or effect of the law is unconstitutional.   Duh.