MEXICO CITY—In an aggressive bid to move beyond low-wage factory jobs and toward an entrepreneurial economy, Mexico is producing graduates in engineering and technology at rates that challenge its international rivals, including its No. 1 trade partner, the United States. MORE