Growth in overall health-care spending is slowing, but middle-class families’ share of the tab is getting larger, squeezing households already feeling stretched financially.

Overall, health-care spending across the economy reached 18.2% of gross domestic product as of June, up from 13.3% in 2000, according to Altarum Institute, a health research group.

However,...