More than 12,000 migrants, identified by officials on both sides as mostly Haitian, have been gathering in recent days, awaiting immigration processing.