Re: The US has spent more than 5x that amount
Like most wars, the war in Ukraine is being fought for sound economic reasons, not because Putin is a lunatic, or Ukraine wanted to join NATO, or anything like that. The fact that major world powers have invested tens of billions, and are continuing to do so, should tell you that the prize at the end of it must be worth trillions. They certainly don't commit all that money for altruistic moral reasons just because some foreign people got blown up.
But none of that is relevant to the JWST, which is absolutely awesome.