Slower growth in healthcare spending is shoring up the funding outlook for the federal Medicare program.