The US will review green cards issued to the citizens of 19 countries after two members of the National Guard were shot by a suspected Afghan gunman in Washington DC.