The directive comes hours after President Trump said the US will pause migration from "third-world countries".