MEXICO CITY — The party that ruled Mexico for decades with an autocratic grip appears to have vaulted back into power after 12 years in opposition, as voters troubled by a bloody drug war and economic malaise gave its presidential candidate, Enrique Peña Nieto, a comfortable victory on Sunday, according to preliminary returns and exit polls.