The U.S. Supreme Court upheld President Donald Trump's controversial travel ban Tuesday.
The justices looked at the third version of the ban, which restricted travel for people coming to the U.S. from certain Muslim-majority countries.
When the Trump administration issued the policy last fall, it applied to eight nations: Iran, Libya, Syria, Yemen, Somalia, Chad, North Korea and Venezuela. The legal challenge did not apply to the portions of the policy involving North Korea or Venezuela, and the administration removed Chad from the list in April.
In a 5-4 decision, the Supreme Court ruled the travel ban "is squarely within the scope of Presidential authority" under immigration law.
In his majority opinion, Chief Justice John Roberts wrote that the government "has set forth a sufficient national security justification." He added, "We express no view on the soundness of the policy."
Trump responded to the ruling Tuesday, writing on Twitter, "Wow!"
Additional reporting from Newsy affiliate CNN.