Well yeah. Trump made it a point during his campaign to call for a ban on Muslim immigrants. Rudy Giuliani went on the news and admitted outright Trump had asked him to do the Muslim ban but legally. These sorts of statements are admissible evidence pertaining to the intent of the EO. The EO in context of these statements, and only in context of these statements, was decided to be unconstitutional. If Clinton had won and issued the same exact order there would be no such context and the same argument wouldn't have been valid. So the EO would have stood.
If Trump and his surrogates had used any sort of restraint at all the EO would have stood. But because they constantly open their big mouths they are constantly incriminating themselves on future legal matters. He has no one to blame but himself.
I suggest that you research the case law on campaign rhetoric and whether or not they have any relevance to later acts before you bury yourself even further.