An intense, closely guarded diplomatic effort by a core team of Biden energy and national security officials to raise global oil production amid surging prices from Russia’s war in Ukraine has fostered a cautious sense of optimism inside the White House.