I highly doubt Obama is upset.

UNITED NATIONS — A last-ditch American effort to head off a Palestinian bid for membership in the United Nations faltered. President Obama tried to qualify his own call, just a year ago, for a Palestinian state. And President Nicolas Sarkozy of France stepped forcefully into the void, with a proposal that pointedly repudiated Mr. Obama’s approach.

The extraordinary tableau Wednesday at the United Nations underscored a stark new reality: the United States is facing the prospect of having to share, or even cede, its decades-long role as the architect of Middle East peacemaking.

Even before Mr. Obama walked up to the General Assembly podium to make his difficult address, where he declared that “Peace will not come through statements and resolutions at the U.N.,” American officials acknowledged that their various last-minute attempts to jump-start Israeli-Palestinian negotiations with help from European allies and Russia had collapsed.

Mr. Obama himself seemed to forecast this back in May when, speaking to the American Israel Public Affairs Committee, he warned that events in the Middle East could lead to a challenge to the status quo if the Israelis and Palestinians did not move quickly toward a peace deal.

“There’s a reason why the Palestinians are pursuing their interests at the United Nations,” Mr. Obama said then. “They recognize that there is an impatience with the peace process, or the absence of one, not just in the Arab world, in Latin America, in Asia, and in Europe. And that impatience is growing, and it’s already manifesting itself in capitals around the world.”

The Palestinian president, Mahmoud Abbas, delivered on the threat. He announced last Friday his plans to go to the Security Council in a quest for Palestinian membership in the United Nations and international legal recognition of statehood, putting Mr. Obama in the position of having to stand in the way. Israel and its allies in Congress, where Prime Minister Benjamin Netanyahu of Israel enjoys broad influence, were sharply opposed.

So on Wednesday, Mr. Obama “did exactly what he had to do,” said David Rothkopf, a former Clinton administration official and a visiting fellow at the Carnegie Endowment for International Peace. “He made a clear statement for what is a clear U.S. position and put himself squarely as a champion of the status quo.”

Mr. Netanyahu, Mr. Rothkopf said, “has managed to read the U.S. political situation perfectly, making Obama acutely aware that he could be losing part of his base, and that, I think, in turn is what has locked Obama in.”

The Palestinians have never fully trusted the United States to serve as an honest broker with Israel. But its credibility with the Palestinians has crumbled with the recognition that Mr. Obama may not have the clout to press the Israelis into a peace deal that requires significant compromises.