The US spends more on healthcare -- measured in total, and per capita, and as share of GDP -- than any other OECD country, even though it and Mexico are the only OECD countries without universal healthcare. It spends more out of public funds on healthcare (again, by all three measures) than many OECD countries providing universal healthcare spend in total, while also spending more in private spending on healthcare than it does in public spending.
While the US spending about as much (a while ago it was a little more, right now I think its a hair less) as the rest of the world combined in military spending may be argued to limit resources for other activities, it is manifestly not meaningfully constraining health care spending.