A federal appeals court refused Thursday to reinstate President Donald Trump's ban on travelers from seven predominantly Muslim nations, unanimously rejecting the administration's claim of presidential authority, questioning its motives and concluding that the order was unlikely to survive legal challenges.

The three judges of the San Francisco-based 9th U.S. Circuit Court of Appeals said the argument that the ban targets Muslims raised "serious allegations" and presented "significant constitutional questions," and they agreed that courts could consider statements by Trump and his advisers about wishing to enact such a ban.

The president vowed to contest the decision, tweeting, "SEE YOU IN COURT, THE SECURITY OF OUR NATION IS AT STAKE!"

SEE YOU IN COURT, THE SECURITY OF OUR NATION IS AT STAKE! — Donald J. Trump (@realDonaldTrump) February 9, 2017

In response, Washington state Gov. Jay Inslee, a Democrat who leads one of the states that challenged the ban, said: "Mr. President, we just saw you in court, and we beat you." The state's solicitor general, Noah Purcell, mirrored Inslee's remarks during a press conference following the decision, saying "We did see you in court, twice, and you've lost both times."

"Bottom line, this is a complete victory for the state of Washington," Washington Attorney General Bob Ferguson added.

President Donald Trump vowed to contest Thursday's decision by the 9th U.S. Circuit Court of Appeals to reinstate his travel ban, after the panel of three judges declined to block the ruling that suspended the ban. "We have a situation where the security of our country is at stake," Trump said.

The court battle is far from over. The lower court still must debate the merits of the ban, and an appeal to the U.S. Supreme Court, which remains short-handed and could deadlock, is likely. The chances of Trump's Supreme Court nominee Neil Gorsuch to be confirmed in time to take part in any consideration of the ban is improbable. A 4-to-4 tie in the court would leave the appeals court’s ruling in place.

The appeals panel said the government presented no evidence to explain the urgent need for the executive order to take effect immediately. The judges noted compelling public interests on both sides.

"On the one hand, the public has a powerful interest in national security and in the ability of an elected president to enact policies. And on the other, the public also has an interest in free flow of travel, in avoiding separation of families, and in freedom from discrimination."

The court rejected the administration's claim that it did not have the authority to review the president's executive order.

The White House late Wednesday posted on its website ethics waivers granted to four ex-lobbyists and numerous others who have joined government.

"There is no precedent to support this claimed unreviewability, which runs contrary to the fundamental structure of our constitutional democracy," the court said.

While they did not rule on the actual merits of the states' argument that the travel ban was intended to target Muslims, the judges rejected the government's claim that the court should not consider statements by Trump or his advisers about wishing to enact such a ban. Considering those remarks, the judges said, falls within well-established legal precedent.

The Justice Department said that it was "reviewing the decision and considering its options." It's the first day on the job for new Attorney General Jeff Sessions, who was sworn in at the White House earlier Thursday by Vice President Mike Pence.

Last week, U.S. District Judge James Robart in Seattle issued a temporary restraining order halting the ban after Washington state and Minnesota sued. The ban temporarily suspended the nation's refugee program and immigration from countries that have raised terrorism concerns.

[NATL] Seen in Trump's Orbit: Jared Kushner, Jack Ma

Justice Department lawyers appealed to the 9th Circuit, arguing that the president has the constitutional power to restrict entry to the United States and that the courts cannot second-guess his determination that such a step was needed to prevent terrorism.

The states said Trump's travel ban harmed individuals, businesses and universities. Citing Trump's campaign promise to stop Muslims from entering the U.S., they said the ban unconstitutionally blocked entry to people based on religion.

The appeals court sided with the states on every issue save one: the argument that the lower court's temporary restraining order could not be appealed. While under 9th Circuit precedent such orders are not typically reviewable, the panel ruled that due to the intense public interest at stake and the uncertainty of how long it would take to obtain a further ruling from the lower court, it was appropriate to consider the federal government's appeal.

Speaking at a law enforcement conference at the White House on Feb. 8, President Donald Trump spent time criticizing the federal courts for blocking his travel ban, reading aloud from the executive order.

Josh Blackman, a professor at South Texas College of Law in Houston, said the "million-dollar question" is whether the Trump administration would appeal to the Supreme Court.

That could run the risk of having only eight justices to hear the case, which could produce a tie and leave the lower-court ruling in place.

"There's a distinct risk in moving this too quickly," Blackman said. "But we're not in a normal time, and Donald Trump is very rash. He may trump, pardon the figure of speech, the normal rule."

President Donald Trump’s claim that his recent executive action on immigration and refugees mirrors restrictions put in place under former President Barack Obama in 2011 is not accurate, says Eugene Kiely of Factcheck.org. NBC News reports.

Jessica Levinson, a professor at Loyola Law School, said the ruling was thoughtful and supported by a great deal of legal precedent. More important, though, it was unanimous despite the having judges who were appointed by Democratic and Republican presidents.

"It's a very important message that judges are not just politicians in robes and not just political hacks," Levinson said. "The role of the judge is to transcend politics. That's why they're appointed for life, so they don't worry about what's popular. They worry about what's legally correct."

Both sides faced tough questioning during an hour of arguments Tuesday. The judges hammered away at the administration's claim that the ban was motivated by terrorism fears, but they also challenged the states' argument that it targeted Muslims.

"I have trouble understanding why we're supposed to infer religious animus when, in fact, the vast majority of Muslims would not be affected," Judge Richard Clifton, a George W. Bush nominee, asked an attorney representing Washington state and Minnesota.

Only 15 percent of the world's Muslims are affected by the executive order, the judge said, citing his own calculations.

"Has the government pointed to any evidence connecting these countries to terrorism?" Judge Michelle T. Friedland, who was appointed by President Barack Obama, asked the Justice Department attorney.

After the ban was put on hold, the State Department quickly said people from the seven countries — Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen — with valid visas could travel to the U.S. The decision led to tearful reunions at airports round the country.

The ban was set to expire in 90 days, meaning it could run its course before the court would take up the issue. The administration also could change the executive order, including changing its scope or duration.

The president, in his third week in office, has criticized the judiciary's handling of the case. Last weekend, he labeled Robart a "so-called judge" and referred to the ruling as "ridiculous." Earlier this week he accused the appellate court considering his executive order of being "so political."

Moments after the decision was announced, Trump told reporters in a brief, impromptu appearance in the West Wing that the decision is "political" and that ultimately his administration was "going to win the case," NBC News reported.