When the United States and European Union moved to curtail purchases of Russian fossil fuels this year, they hoped it would help make the Russian invasion of Ukraine so economically painful for Moscow that Russian President Vladimir Putin would be forced to abandon it.

That prospect now seems remote at best.

China and India, the world’s most populous countries, have swooped in to buy roughly the same volume of Russian oil that would have gone to the West. Oil prices are so high that Russia is making even more money now from sales than it did before the war began four months ago. And its once-flailing currency has surged in value against the dollar.