The US doesn’t lack the capital for welfare. The country decides to instead waste its resources fighting wars, fighting its allies, fighting its trade partners. The money is here, there is no will to allocate it to welfare. You could reduce the number of people on welfare by a massive amount and none of the savings from that would get distributed to the remaining recipient
Those wars are essential to protecting our economic interests. An isolationist US is impossible. We're pretty much a modern imperial power.