The Court seems to be making the mistake of focusing on what statements Trump made during the election campaign and not on the issue of whether the President has the authority of imposing a ban on whomever he determines may
pose a  national security threat.  The Federal statues relevant to this question do give whoever is President the authority.  The travel ban issued by Trump was first of all for a temporary period of time during which new vetting procedures
were to be put into place and second it targeted very specific predominant muslin countries and not the other predominant muslin countries.  For the opponents to claim that his travel ban was based on race and religion discrimination
is totally false.