Bar associations do control standards for qualifications and acceptable on-ramp paths which directly governs supply (in fact, the oversupply differs in jurisdictions as a direct result of these decisions).
A key difference is that the legal pipeline isn’t sensitive to federal funding to govern supply of qualified new lawyers the way the medical pipeline is for doctors, though; there’s nothing analogous in law to the reliance on medicare funding of residency slots in medicine.