Yes, 9-0, except 3 justices wanted to reinstate the ban fully and dissented as they called the “bona fide relationship” exception to be “unworkable”.
I fear that the courts remedy will prove unworkable, Justice Thomas wrote. Todays compromise will burden executive officials with the task of deciding on peril of contempt whether individuals from the six affected nations who wish to enter the United States have a sufficient connection to a person or entity in this country.
The compromise also will invite a flood of litigation until this case is finally resolved on the merits, as parties and courts struggle to determine what exactly constitutes a bona fide relationship, who precisely has a credible claim to that relationship, and whether the claimed relationship was formed simply to avoid the executive order, Justice Thomas wrote, quoting from the majority opinion.
https://www.nytimes.com/2017/06/26/us/politics/supreme-court-trump-travel-ban-case.html