The Supreme Court on Monday allowed most of the Trump administration’s travel ban to go forward before it hears a case on the matter in October.

The ruling grants a Trump administration stay of lower court rulings that had piled up against the president.

The Supreme Court will hear arguments in October, and meanwhile, will allow a temporary ban from six Muslim-majority countries. Those countries are Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen.

“Today’s unanimous Supreme Court decision is a clear victory for our national security. It allows the travel suspension for the six terror-prone countries and the refugee suspension to become largely effective,” President Donald Trump said in a statement.

“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.”

“My number one responsibility as Commander in Chief is to keep the American people safe. Today’s ruling allows me to use an important tool for protecting our Nation’s homeland. I am also particularly gratified that the Supreme Court’s decision was 9-0.”

The president’s son called the unanimous decision “icing on the cake.”

However, the ban will not be able to be enforced for people with a “bona fide” relationship to the U.S., such as those with family members stateside, those who have been admitted to a college or hired by an employer.

Justice Clarence Thomas, with Justices Samuel Alito and Neil Gorsuch concurring, argued the injunctions should have been stayed in full. Thomas argued that the class of foreign nationals who have such a “bona fide” relationship is not identified, and that the compromise will burden executive officials to decide whether individuals have a sufficient relationship or not.

The three also tipped their hand on how they’ll rule on the case. “I agree with the Court’s implicit conclusion that the Government has made a strong showing that it is likely to succeed on the merits — that is, that the judgments below will be reversed,” Thomas wrote.

Also read:Supreme Court to decide whether baker can deny cake for gay wedding