Russia’s ruble has outpaced every major currency against the dollar this year, a rally that caught policymakers off guard and threatens to undermine the nation’s wartime economy.