A second executive order, signed during an appearance at the Department of Homeland Security, was aimed at stripping federal grant money from "sanctuary" states and cities, often governed by Democrats, that harbour undocumented immigrants.