California Attorney General Xavier Becerra said that medical school programs would “risk being without a sufficient number of medical residents to meet staffing needs,” and that more than 2,000 students set to enroll in the state’s college and university system would be affected.