The San Francisco-based appeals court, however, said the Trump administration could continue to bar individuals from countries in the Middle East and North Africa from entering the U.S. if they do not have a “bona fide” relationship with someone in the U.S.

The court said the ruling would be put on hold pending any review by the Supreme Court.

In the ruling, the court said that “the Proclamation’s indefinite entry suspensions constitute nationality discrimination in the issuance of immigrant visas,” and that it discriminates against travelers and immigrants in the same vein as Trump’s previous travel bans.