How Putin’s technocrats saved the economy to fight a war they opposed