https://www.thebalance.com/u-s-federal-budget-breakdown-3305...
The calculations also get tricky because there are lots of state and city level spending that would have to be accounted for, such as things like funding public schools.
Medicaid makes sense though, which is apparently about 10% of the federal budget.
It's not he's saying. He's saying that public schools should be considered part of the "welfare program". Which they probably should since public schools, like social security, are program that benefit society as a whole, which you can (or cannot) use depending on your personal situation.
Someone else notes that those program tend, on average, to mostly benefit poor people - which they probably should. But it's not systematic.
So I don't really see any taxonomy issues here.
Social security is similar, see my other comment.