Social Security and Medicare will get a credit for taxes collected that are not immediately spent on Social Security, but those taxes are quickly devoted to other federal spending.
The health care bill actually puts Medicare on a more solid financial footing.