The war has been a drain on Russia’s treasury, a setback for its commercial sector and a geopolitical reverse.