Another US appeals court stepped on President Donald Trump’s reconsidered travel ban, saying the administration violated government immigration law and neglected to give a legitimate motivation to keeping people from six for the most part Muslim nations from coming.

The choice by a consistent three-judge board of the San Francisco-based ninth US Circuit Court of Appeals keeps the travel ban blocked and deals Trump a second huge legal annihilation on the arrangement in under three weeks.

The administration has advanced another decision against the ban to the Supreme Court, which is probably going to consider the cases in tandem. The White House said it is sure the high court will maintain Trump’s executive order.

The fourth US Circuit Court of Appeals in Virginia a month ago referred to the president’s campaign explanations requiring an “total and complete shutdown” on Muslims entering the US as evidence the 90-day ban was unconstitutionally “saturated with hostility and coordinated at a solitary religious group”, instead of fundamental for national security.

The ninth Circuit, which heard contentions in Seattle a month ago in Hawaii’s test to the ban, found no compelling reason to investigate Trump’s campaign explanations. It ruled in view of immigration law, not the Constitution.

“Immigration, notwithstanding for the president, is not a one-individual show,” the judges said. “National security is not a ‘supernatural spell’ that, once conjured, can bolster all activity of executive power.”

Judges Michael Hawkins, Ronald Gould and Richard Paez – all named by President Bill Clinton – said the travel ban violated immigration law by oppressing people in light of their nationality with regards to issuing visas and by neglecting to exhibit their entrance would hurt American premiums.

The president’s order did not tie natives of Iran, Libya, Somalia, Sudan, Syria and Yemen to “terrorist associations” or recognize them as supporters of “dynamic clash”, the court said. It additionally did not give any link between their nationality and their affinity to submit terrorism.

“To put it plainly, the order does not give a basis clarifying why allowing passage of nationals from the six designated countries under current protocols would be hindering to the interests of the United States,” the decision said.

The judges indicated a June 6 tweet by Trump saying the order was gone for “unsafe countries”. That exhibited he was not surveying whether the approximately 180 million subjects of the six countries had binds to terrorism, they said.

In view of the contention with immigration law, the judges said they didn’t have to consider whether it likewise abused the Constitution’s preclusion on the administration supporting or disfavouring any religion. The fourth Circuit found the approach unlawful on that premise.

Lawyer General Jeff Sessions upbraided the decision. “Late attacks affirm that the risk to our country is quick and genuine. Certain countries haven or support terrorist groups like ISIS and al-Qaeda, and we might be not able acquire any solid foundation data on people from these war-torn, fizzled states,” Sessions said in an announcement.

The White House anticipated a win at the Supreme Court.

“To be perfectly honest, I think any lawyer deserving at least some respect 100 percent concurs that the president’s completely inside his rights and his duties to do what is important to secure the nation,” representative Sean Spicer said.

Hawaii Attorney General Douglas Chin said the new deciding demonstrated that “our arrangement of balanced governance, cherished in the Constitution for over 225 years, stays set up”.