The deployment of thousands of American troops to the border with Mexico has begun as part of the fight against illegal migration.