The U.S. Supreme Court on Monday handed a victory to President Donald Trump by reviving parts of his travel ban on people from six Muslim-majority countries and refugees and agreeing to decide its legality later this year in a major test of presidential powers.

The justices narrowed the scope of lower court rulings that had completely blocked his March 6 executive order that Trump had said was needed to prevent terrorism in the United States, allowing his temporary ban to go into effect for people with no strong ties such as family or business to the United States.

In a statement, Trump called the high court's action "a clear victory for our national security," saying the justices allowed the travel suspension to become largely effective.