Travel Ban: Korematsu was about American citizens being detained, and as the majority said was a horrible ruling the day it was set. The travel ban is going after countries that are unable to vet their citizens that were trying to travel to the US (non-US citizens). US Citizens are able to apply to get around the ban. Also, there were a few countries on the list that were not Muslim majority countries (Venezuela, North Korea, and Chad). The law outlined ways for countries to get off the list, which Chad succeeded in doing.
The travel ban is also incredibly racist. North Korea being on the list doesn't matter because North Korea rarely allows people to travel to the United States and the Venezuelan ban only bars a few high-level officials. Those countries added to the list are an excuse for the government to say 'look we're not racist we have non-Muslim countries on the list!' while the rest have little to no actual security rationale behind it.
They overturned Korematsu in this decision, only to uphold something similar with similar racist sentiment behind it. Whenever you think of the Supreme Court affirming that the executive has the power to do something, you should always keep in mind that they had originally considered the executive had the power to toss people in camps for 'security' purposes.
And on a similar note, the punting they did on the Baker case was almost entirely made up by the court based on a completely irrelevant line by someone tangentially related to the case. I highly recommend listening to episode 180 of the Opening Arguments podcast to understand how utterly ridiculous their decision was.