The limiting factor is not the spots for medical students, but rather for residents and fellows, who are primarily funded through medicare/medicaid and the VA.
An interesting post on this is here, although it somewhat contradicts the popular notion that graduate medical education is limited by funding: https://theincidentaleconomist.com/wordpress/gme-federal-fun...