President Enrique Pena Nieto signed Mexico’s most sweeping education reform in seven decades into law Monday, seeking to change a system in which teaching positions could be sold or inherited, and no official census of schools, teachers and students was ever carried out.