President López Obrador overhauled the way the government bought medicines, alleging corruption, but a shortage of vital drugs has followed.