Perhaps I'm missing something here or the title is misleading. I don't see this as a victory at all as the travel ban was only for 90 days (which is about to expire) and the refugee resettlement was only for 120 days. Nothing was won here unless the lower courts won't be able to rule against a future travel ban and refugee resettlement order. The very last thing we need is an influx of Muslim refugees and loading this country with problems like Europe; specifically Germany!
IF SCOTUS gets it right, the decision sets precedent, meaning that a future EO from the Prez cannot be blocked or overturned by the lower Courts a 2nd time for the same reasons they floated the 1st time.
And since the reasons/excuses the lower courts resorted to to block the 1st ban were really reaching for a legal foothold (IE: the best they could come up with) those lower courts are gonna be left with even Worse/More Ridiculous reasons to block any new bans. Which doesn't mean they won't try, but this will make it considerably harder for them to do it a 2nd time.
And they're out of legal gas.