An analysis of census data by the Pew Research Center found that between January and June, the foreign-born population declined by nearly 1.5 million.