im counting everything. If the question is "what do we get for 4.5 trillion in taxes, and 6 trillion is spending", the answer is largely "welfare programs".
"welfare" [1] is generally a distinct concept from "public goods" [2]
Welfare is typically ment to mean policies to alleviate the hardships of poverty. These can be wealth transfers or socialized insurance policies to reduce the variability of outcomes.
Public goods are services like roads, courts, or firemen.
It's also one of the largest revenues, and in most countries non-means tested, self funded programs wouldn't be considered welfare. It's been this was since the 30s and only recently have the terms been spun in the US as some wonky wHoA SaY-NO-To-CoMmUniSm!
I'm not really interested in debating different definitions. The point stands that the discretionary budget for building and maintaining public infrastructure is a small part of government, with the vast majority going to alleviating the hardships of poverty.
https://www.cbo.gov/publication/59727