The basic picture of the federal government you should have in mind is that it’s essentially a huge insurance company with an army; Social Security, Medicare, Medicaid — all of which spend the great bulk of their funds on making payments, not on administration — plus defense are the big items.
Paul Krugman, demonstrating the sort of simple yet incisive and instructive logic that won him the Nobel Prize.