The popular president hails from the Mexican oil industry’s heartland, and 16 years ago he led a fight against energy reforms that were aimed at drawing private investment to the massive state-run oil company, Pemex.