US President Donald Trump plans to sign legislation to potentially deport people who are in the country illegally and also accused of theft and violent crimes.