Thanks largely to the growing costs for programs like Medicare and Social Security, the federal debt will reach 150 percent of gross domestic product by 2047, the CBO projected, up from an expected 77 percent at the end of this year.