The United States acted on Sunday to stem the flow of migrants into Texas by blocking the Mexican border at an isolated town where thousands of Haitian refugees set up a camp, and American officials began flying some of the migrants back to their homeland.