The president effectively halted all immigrant crossings at the border with Mexico on his return to the White House.