President Donald Trump speaks during a meeting with Senators on his Supreme Court Justice nominee Neil Gorsuch, Thursday, Feb. 9, 2017, in the Roosevelt Room of the White House in Washington. (AP Photo/Evan Vucci)

President Donald Trump speaks during a meeting with Senators on his Supreme Court Justice nominee Neil Gorsuch, Thursday, Feb. 9, 2017, in the Roosevelt Room of the White House in Washington. (AP Photo/Evan Vucci)

WASHINGTON (AP) — President Donald Trump said Thursday’s federal appellate court ruling against reinstating his refugee and immigration order was a “political decision” that jeopardized national security.

“We have a situation where the security of our country is at stake and it’s a very, very serious situation so we look forward ... to seeing them in court,” Trump said. “We’re going to win the case.”

Trump, in a brief, impromptu appearance in the West Wing, did not specify what his administration’s next legal steps would be and said he had not yet conferred with Attorney General Jeff Sessions, who was sworn into office earlier Thursday.

The president said he did not believe the decision undercut his presidency.

ADVERTISEMENT

In a unanimous decision, the San Francisco-based 9th U.S. Circuit Court of Appeals declined Thursday to block a lower-court ruling that suspended the executive order preventing travelers from seven Muslim-majority nations from entering the U.S.

The Justice Department said it was “reviewing the decision and considering its options.” It could appeal the judge’s restraining order to the U.S. Supreme Court or it could attempt to make the case for the travel ban in the district court.

White House counselor Kellyanne Conway suggested the next step would be to argue the merits of the executive order.

“The statute provides a president ... with great latitude and authority to protect the citizens and to protect the nation’s national security,” Conway said. “This was not argued on the merits. Now that we’ll have an opportunity to argue on the merits we look forward to doing that. We look forward to prevailing.”

The ruling represented a setback for Trump’s administration and the second legal defeat for the new president in the past week. Trump’s decision to sign the executive order late last month has sparked protests at airports around the world as authorities barred scores of travelers from entering the country amid confusion over how to implement the details.

The appellate decision brushed aside arguments by the Justice Department 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.

Shortly after the ruling, Trump tweeted, “SEE YOU IN COURT, THE SECURITY OF OUR NATION IS AT STAKE!”

Senate Minority Leader Chuck Schumer tweeted Thursday that Trump “ought to see the writing on the wall” and abandon the proposal. The New York Democrat called on the president to “roll up his sleeves” and come up with “a real, bipartisan plan to keep us safe.”

House Democratic leader Nancy Pelosi of California promised, “Democrats will continue to press for President Trump’s dangerous and unconstitutional ban to be withdrawn.” And Trump’s former presidential rival Hillary Clinton offered a terse response on Twitter, noting the unanimous vote: “3-0.”

ADVERTISEMENT

Congress’ Republican leaders, House Speaker Paul Ryan and Senate Majority Leader Mitch McConnell, declined to comment.

U.S. District Judge James Robart in Seattle issued the temporary restraining order halting the ban last week after Washington state and Minnesota sued, leading to the federal government’s appeal.

The Trump administration has said the seven nations — Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen — have raised terrorism concerns. The states have argued that the executive order unconstitutionally blocked entry based on religion and the travel ban harmed individuals, businesses and universities.

In a hallway conversation with reporters, Trump expressed confidence that he will prevail in court if the case is argued on the merits.

He and his aides frequently refer to a ruling by a federal judge in Boston who declined last week to extend a temporary injunction against Trump’s travel ban. In the separate federal ruling in Seattle that night, a different federal judge put the ban on hold nationwide; it is that judge’s decision that the White House has challenged.

“It’s a decision that we’ll win, in my opinion, very easily and, by the way, we won that decision in Boston,” Trump said.

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

Trump’s Supreme Court nominee, Judge Neil Gorsuch, has referred to the president’s comments as “demoralizing and disheartening,” according to a Democratic senator who asked him about Trump’s response.

Trump has yet to nominate a candidate to be solicitor general, the lawyer who argues before the Supreme Court on behalf of the United States. Trump told reporters he’ll be making that decision over the next week.