President Donald Trump has pursued an aggressive immigration crackdown that he says is aimed at improving domestic security.