Donald Trump just praised a Supreme Court order allowing a limited version of Trump’s travel ban to take effect as a “clear victory for our national security.”

“Today’s unanimous Supreme Court decision is a clear victory for our national security,” he said in a statement.

“Today’s ruling allows me to use an important tool for protecting our nation’s homeland,” he added. “I am also particularly gratified that the Supreme Court’s decision was 9-0.”

This morning the Supreme Court granted the Trump administration’s request to reinstate part of the travel ban meant to temporarily block people from six predominantly Muslim countries from entering the United States. The court also agreed to hear the government’s appeal of lower court that had prevented the ban from going into place.

Overall, the decisions represented a victory for President Trump, who for months has fought to implement his executive order affecting travelers from Iran, Libya, Somalia, Sudan, Syria and Yemen.

The court will hear the case when it returns for the fall term, which begins the first Monday in October. Arguments have not yet been scheduled.

As a result of the decision, people who do not have a bona fide relationship with a person or entity in the United States would be barred from entry once the order goes into effect within 72 hours. People who can show they have a relationship to a person or entity will be allowed to enter the country.

Justices Clarence Thomas and Samuel Alito, along with the newest justice, Neil Gorsuch — Trump’s nominee to the court earlier this year — wanted to lift the hold on the entire ban, according to the order.

It is unclear how many justices wanted to put part of the order back in place immediately, and it is unclear how many justices wanted to hear the case. At least five votes were needed to reinstate the ban in part, and at least four votes were needed to hear the government’s appeal.