The arms race is what bankrupted the USSR in the short term and communism in the long term.
They supported that race just fine when oil was selling for a high price under the Carter Administration.