The Supreme Court agreed Monday to hear the Trump administration's challenge to rulings blocking his executive order restricting travel from six Muslim-majority countries.

The top U.S. court will allow enforcement of parts of the "travel ban" while the case moves forward. Justices will hear arguments on the case in the fall.

President Donald Trump has argued that the measure, a key campaign plank and one of the most divisive moves of his young presidency, is necessary to prevent terrorist attacks in the U.S. Critics and some federal court rulings have argued that it targets immigrants based on religion, after Trump called for a "total and complete shutdown" of Muslims entering the U.S. as a candidate.

In a statement, Trump called the court's move "a clear victory for our national security." He highlighted that all the justices backed temporarily allowing enforcement while the case proceeds.

"As president, I cannot allow people into our country who want to do us harm. I want people who can love the United States and all of its citizens, and who will be hardworking and productive," he said.

Two federal appeals courts previously upheld rulings that largely blocked enforcement of the executive order. The Trump administration made an emergency request to put the measure into effect.