This is all true. The cost of research is high. And although there are some additional costs involved in educating a more broad student body, it's nothing compared to the disinvestment in higher ed by state governments. Here's the ed department's data on expenditures. It doesn't show huge increases:
https://nces.ed.gov/programs/digest/d18/tables/dt18_334.10.a...