The appellate court repudiation of President Donald Trump’s travel ban marked the first high-level loss for a new administration that, for all the chaos it has inflicted on Washington and itself, had thus far largely succeeded in accomplishing its immediate goals.

Before the judicial panel refused Thursday to reinstate Trump’s order — which aimed to prevent entry into the U.S. by refugees and by all travelers from seven mostly Muslim countries — drama in Washington played out as if the nation had only two pillars of power. Trump nominated Cabinet secretaries, and the Republican-led Senate, the only part of the legislative branch with a role in these opening days, pushed them past Democratic opposition.

The court decision was a reminder to the president that the success of his administration will also be driven by the views of jurists who represent the third center of power under the U.S. Constitution.

And it was a reminder of how Trump, and his inability to curb his impulses, can pose a threat to his own goals.

Tweets and comments from the president that were once seen as merely inflammatory and insulting, such as his campaign pledge to enact a ban on all Muslims seeking to come to the U.S., took on more power when cited as evidence before the courts. Trump’s words cut against the Justice Department’s argument that the president’s executive order did not amount to an unconstitutional ban on any particular religion.

The court also provided a rebuttal to the bleak worldview Trump has promoted through exaggerations and falsehoods about safety threats at home and abroad.

“The government has pointed to no evidence that any alien from any of the countries named in the order has perpetrated a terrorist attack in the United States,” the judges wrote.

Trump contributed to the court’s rebuke by adopting, in his early weeks as president, a shock-and-awe strategy that put a premium on speed and secrecy rather than thoughtful deliberation. In the case of the executive order, issued one week after he took office, that meant the administration bypassed review by agencies that might have helped the plan meet judicial muster.

On Friday, in the aftermath of the loss in court, administration officials said they were considering a new executive order designed to fix the main problems of the original — a tacit admission of problems with how the order had been written and carried out.

Trump came into office bent on upending politics, and his actions have been meant to further that image. Swift, unilateral behavior — and sharp rejoinders to anyone not going along — are his hallmarks.

While that has kicked up controversy, Trump has succeeded in early tests of strength because his power over Capitol Hill has been nearly complete. The president is hardly a conservative ideologue, but he shares goals important to the Republican majorities in both houses, such as tax cuts for business and upper-income earners and the repeal of President Barack Obama’s health care plan. And that has kept them in line.

With a firm hold on the most activist and energized voters in the Republican base, Trump also represents a potential threat to the political ambitions of Republicans who might want to publicly disagree with him.

After a rocky confirmation hearing, his education secretary, Republican donor Betsy DeVos, was approved with only two GOP defections and Vice President Mike Pence breaking a Senate tie. His attorney general, former Sen. Jeff Sessions of Alabama, survived furious Democratic objections on the Senate floor with even less GOP wobbling.

That loyalty and a provocative sense of siege have propelled the administration’s first few weeks. Trump has worked to create the sense he first floated in the campaign that only he can solve the nation’s problems and that any entity that threatens his political power is illegitimate.

As president, he has crafted that alternative universe from his first inaugural words, when he cast a dark vision of “American carnage” across the land.

He declares almost daily that the media are dishonest and out to get him. He has cast reporters as effectively treasonous for hiding incidents of terrorism — a false accusation.

“They have their reasons and you understand that,” Trump told military service members in Florida last week, speaking of the media.

He also went after U.S. District Judge James Robart, the jurist who initially blocked his travel ban, in an echo of his attacks last year on a judge handling a case against Trump’s real estate course.

“The judge opens up our country to potential terrorists and others that do not have our best interests at heart,” Trump tweeted this week. “Bad people are very happy.”

“Just cannot believe a judge would put our country in such peril. If something happens blame him and court system. People pouring in. Bad!”

As the appellate panel indicated in its judgment, Trump provided no proof that people in the countries listed in the ban are an imminent threat.

But his rhetoric remains consistent. In the past 10 days — half the length of his presidency — Trump has taken on judges and the media, demeaned his opponents as paid provocateurs, threatened to strip federal funds from California, insulted Australia, a U.S. ally, and cast aspersions on Nordstrom for its decision to stop selling a fashion line by his daughter Ivanka.

On Thursday, apparently angered that Sen. Richard Blumenthal, D-Conn., had made public some remarks by Trump’s Supreme Court nominee, Neil Gorsuch, that were critical of Trump, the president raised Blumenthal’s past exaggeration of his service during the Vietnam War.

Trump then went after Sen. John McCain, R-Ariz., a former Vietnam prisoner of war who had angered him by defining as a “failure” a recent counterterrorism raid in Yemen in which a Navy SEAL died.

“He’s been losing so long he doesn’t know how to win any more,” Trump tweeted of McCain, who won his sixth term in November.

Later, on Trump’s behalf, spokesman Sean Spicer said that criticizing a military operation, as McCain had done, did a “disservice” to the slain officer — a striking remark given Trump’s habit of denouncing earlier military actions.

The most obvious downside to Trump’s behavior so far is its potential to work against his own interests. He’s insulted judges who hold his plans in their hands and senators who will vote on his proposals.

And so far, he has made no effort to reach beyond the minority of voters who backed him in November. A Gallup poll last week found 43 percent of Americans supporting him — less than the 46 percent of the country who voted for him. Of eight major polls that have tracked changes in Trump’s job approval since his inauguration, seven showed a decline.

In any normal presidency, even this early in its existence, those would be sobering statistics. Thursday’s reminder that another constitutional branch has the power to upend presidential actions would only amplify the concern.

In any normal presidency, those would be reason enough to regroup and do things differently in the future.

Nothing in the Trump experience so far suggests such changes are in store.

Our editors found this article on this site using Google and regenerated it for our readers.