The Department of Homeland Security put together a plan months ago to deal with thousands of migrants arriving at the border: flying some of them to cities deeper inside the US for processing.