The article says 8-1 is there something I am missing?
The opinion was delivered in three parts. The vote was 5-4 for that opinion. Justices Ginsburg, Breyer, and Kagan agreed with Parts I and II, but disagreed with Part III (8-1). Justice Sotomayor dissented, arguing apparently that the government can do whatever the hell they want, whenever they want.
Yes, you are missing the fact that some people only read the headline and then post without reading the article.
From the Syllabus:
ROBERTS , C. J., delivered the opinion of the Court, in which SCALIA, KENNEDY, THOMAS, and ALITO, JJ., joined, and in which GINSBURG, BREYER, and KAGAN, JJ., joined as to Parts I and II. THOMAS, J., filed a concurring opinion. BREYER, J., filed an opinion concurring in part and dissenting in part, in which GINSBURG and KAGAN, JJ., joined. SOTOMAYOR, J., filed a dissenting opinion.