But then strictly speaking the money spent on wars is not really wasted. It is used to pay wages, buy weapons, invest in military research. Military personal then put the money back into the economy when spending the money on houses, cars, laptops, smartphones etc. Engineers, mechanics and so on are payed to design and build the weapons who in turn get payed for it.
Even the fuel wasted by the military is bought from the oil companies who in turn buy new oil drilling platforms which have to be designed and manufactured by engineers and technicians.
The idea that a lot of the technology comes from the space programming is mostly a myth. Take Teflon for example,discovered in 1938, used as corrosion protection in the Manhattan project in 1943 then in 1954 first applied to kitchen products long before sputnik.
The problem is that you can't expect people to be excited or involved in something that ultimately influences them only very little. People are concerned with their own survival (which in todays world becomes more and more expensive) and not everybody can be a spacecraft engineer or scientist.
The main interest of humans has always been to have work and be able to support themselves and their families and if the military-industrial complex provides that you can't blame them for trying to defend it.
We space enthusiasts were lucky for a while that space exploration was fueled by the cold war, when defense interests overlapped with space exploration interests. Without the "need" for ICBMs we would never have built any orbit capable rockets at all.
I mean how do you justify sending a space probe to the heliopause to the common taxpayer? "Please give us your money so that a couple of scientists and graduate students will be able to publish some papers and advance their careers in about 25 years?"
Even among the scientific community the (real) interest for heliopause research is probably very small. The timescales of such projects are just too long. A heliopause probe would take maybe 5 years to develop and another 20 years to reach its destination. That's almost the duration of a typical research career, nobody working in science can afford to wait that long for any results.
The way I see it is, that it is not yet the time for such research. Just like 16th century physicists would not have been able to learn something of subnuclear particles as the technology was not available at the time, we today have to wait for a significant amount of space exploration before we can properly investigate the outer regions of our solar system.
Once we have research outposts on Titan or Pluto that can send their own probes to the oort cloud this sort of research will be much more affordable and simpler.
Alternatively we have to wait for better space propulsion technology so that we can sent those probes faster to their destination.
In the meantime I'm not particulary worried that we will descent into savagery again (at least technology wise). The average citizen has grown too fond of their little tech gadgets and other helpers for everyday lives to just throw it all away. We are at a stage where we will defend with all our strength the right to access the internet and so on and so forth.
The time for proper space exploration will come just maybe not in our lifetimes...