Given what Trump himself has explicitly said about banning Muslims from entering the country, how could the Supreme Court rule in favor of his Muslim ban?
It's apparently quite simple. All they had to do was ignore everything Trump has ever said about it.
While voting to uphold the policy, Chief Justice John Roberts wrote that the court does not believe in religious discrimination. And I promise you can't read this without your head spinning around 360 degrees.
[Roberts] was careful not to endorse either Trump’s provocative statements about immigration in general and Muslims in particular.
“We express no view on the soundness of the policy,” Roberts wrote. [...]
Roberts wrote that presidents have frequently used their power to talk to the nation “to espouse the principles of religious freedom and tolerance on which this Nation was founded.”
But he added that presidents and the country have not always lived up “to those inspiring words.”
Trump's executive order to ban travelers from predominately Muslim nations from entering the country for 90 days -- a window of time that has long since passed -- was struck down and revised three times before it finally reached the Supreme Court. And in the face of nearly unanimous opinions handed down by various district and appeals courts, the conservative majority of the Supreme Court ignored everything that has actually happened and deferred to the executive on matters of immigration and national security.
This obviously doesn't bode well if Trump's indefinite detention programs for immigrants eventually reach the Supreme Court.
Democrats must flip control of Congress and the White House to pass a comprehensive immigration law that renders decisions like this irrelevant.