President Donald Trump vowed a wide-ranging crackdown on millions of immigrants in the US as he said an Afghan national is the suspect in the shooting of two members of the National Guard in Washington.