Social Security is simple: we take 4% of GDP and cut checks to old people. Whatever the economy's like 40 years from now, you can always take 4% and cut checks to old people. Nobody ever worries about paying for the military 40 years from now.
As for health care costs, all America has to do is copy literally any other rich country's health care system. They all cost half as much or less per capita.