The US has historically passed laws denying entry or citizenship to people of specific ethnicities or nationalities.