After four decades that brought 12 million current immigrants—most of whom came illegally—the net migration flow from Mexico to the United States has stopped and may have reversed, according to a new analysis of government data from both countries by the Pew Hispanic Center, a project of the Pew Research Center.