The US has been spending a couple hundred million dollars per day on the war in Afghanistan alone for the last 20 years. No one even noticed.
If the US put its mind to it (WWII levels of mobilization), it could probably achieve full renewable electrical conversion (all fossil fuel infrastructure obsoleted and removed) within five years or so.