Trump began his presidency with a racist ban on Muslim immigration. It morphed into bad policy
...racist policy that, nonetheless, was able to pass the conservative-packed Supreme Court.
The ban they approved, however, is all about the authority of Trump to enact the third version of the order he presented to the courts, and less about the efficacy of the targets of his travel ban. It's still a discriminatory ban, but, unfortunately for the country, it's blatant discrimination by Trump which isn't checked by legislation from Congress or the courts.
The ban's allowed to stand on a 5-4 ruling, with the SC seat republicans stole from Pres. Obama that is Gorsuch, effectively casting a deciding vote. That's not a clear reflection of a divided nation, it's a consequence of the false rule of a Russian-compromised presidency, and an obsequious republican majority.
It's not coherent policy, and it doesn't even comport with Trump's original, racist, xenophobic intent (Muslims are still admitted from nations outside of the ban). It's a scattershot of arbitrary, contradictory targets from an ignorant president. It's not the way we should be presenting ourselves to the world, and it's a shameful example to those nations who would follow Trump's punitive example against their own minority populations.
Despite the numerous instances cited by previous courts of the president and candidate openly disparaging and denigrating one particular group of immigrants on the basis of their religion, under the guise of 'national security,' the Supreme Court's conservative majority ignored those sick words and gave the president wide latitude to define that security threat to the nation, no matter how specious and contrived.
This policy is an abomination which is being forced upon a disagreeing nation by an increasingly autocratic Executive and an anti-American republican majority in Congress. It's going to take a Democratic majority for this nation to return to the values which the majority of us embrace and share.