MEXICO CITY — A law giving Mexico’s military a legal framework to operate as police is being enacted over widespread objections from human rights groups. The...