Then, when a better tech becomes an option, it doesn't replace the previous weapon, it complements it.
So the options are: 1) retire old weapons, recycle them to build weapons which are expected to be better, keep the military potential about the same, reduce costs but still spend a lot and 2) keep what's in service and build a better weapon. Option 1 is hard to justify politicaly. Scraping something perfectly functional that costs billions sounds like a career ending decision. It also affects too many people. Option 2 is almost a guaranteed way to improve military potential, and a way to have a stellar career. Assuming that funding is available.
So yes, the decisions are not always the most economically efficient. That's a wrong objective function. Especially if we're talking about defense.
Justifying it to the American taxpayer is meaningless when it’s hidden from them. But, justifying it to Congress was just a question of pork spending which is really what the excessive nuclear stockpile was. It’s no accident that all 3 major branches of the military had Nukes, though currently that’s down to Air Force and Navy.
Between 1940 and 1996, the U.S. government spent at least $9.49 trillion in present-day terms[5] on nuclear weapons, including platforms development (aircraft, rockets and facilities), command and control, maintenance, waste management and administrative costs. Saving ~8 trillion was very much a viable option. https://en.wikipedia.org/wiki/Nuclear_weapons_of_the_United_...
By comparison China built about 600 warheads since 1964 which was a significant deterrent for the US. The US on the other hand built ~70,000.
PS: The Minuteman-III was in service from 1970 to now, it’s scheduled to be retire in 2030. While bombers where replaced ICBM’s where hardly a quickly outdated weapon.