The move adheres to a promise Mr. Trump made during his campaign and will please critics who say it was an overly generous magnet for more people to come to Mexico’s border with the United States