Much of the defense spending has been largely a jobs program that employs thousands of people
More accurately, it's been a subsidy to the capitalists controlling particular corporations, with strategic distribution of jobs among Congressional districts as political cover (or hostages, depending on how you look at it.)