A US appeals court had upheld a decision to block Donald Trump's travel ban, which targets people from six Muslim majority countries.
The US Court of Appeals for the Ninth Circuit said the executive order showed discrimination towards those travelling based only on their nationality.
The court also claimed that the President had overstepped his authority by issuing the ban, according to Yahoo News.
Three justices at the court said: "Immigration, even for the President, is not a one-person show.
"The President, in issuing the executive order, exceeded the scope of the authority delegated to him by Congress."
They also said that there was no link between nationality and tendency to commit terrorist acts proved by the Government.
To back up this argument they cited a tweet made by Donald Trump, which said the countries themselves were dangerous, rather than the people in them.
The justices said: "National security is not a 'talismanic incantation' that, once invoked, can support any and all exercise of executive power."
However, the judges ruled that the government is within its rights to review traveller vetting procedures for people from the six countries.
Despite this the case will still be heard in the Supreme Court and law professor Jessica Levinson has said she believes the case won't be heard before autumn, which makes it harder for Trump to argue that the ban is needed urgently.