The scale current of money-burning is just wild. I'm not sure you can compare it to anything else this century.
That said, $2T was spent during GWOT with another $8T in veteran care, DHS, interest in debt.
Current AI spend this year is expected to be $2.59T (chips, infra, etc)