".... when it comes to refugees who lack any such connection to the United States, for the reasons we have set out, the balance tips in favor of the Government’s compelling need to provide for the Nation’s security. See supra, at 9–11; Haig v. Agee, 453 U. S. 280, 307 (1981)."
The Opinion: 9 in favor including 3 who concur
https://www.supremecourt.gov/opinion...-1436_l6hc.pdf