Appealing to the history of immigration in the country doesn't diminish the GP's point as the US has discriminated against the origins and identities of immigrants since its founding.
>The Naturalization Act of 1790 (1 Stat. 103, enacted March 26, 1790) was a law of the United States Congress that set the first uniform rules for the granting of United States citizenship by naturalization. The law limited naturalization to "free White person(s) ... of good character", thus excluding Native Americans, indentured servants, slaves, free black people and later Asians, although free black people were allowed citizenship at the state level in a number of states. [1]
Race based citizenship remained the law until United States v. Wong Kim Ark (1898) [2] where the Supreme Court interpreted the "subject to the jurisdiction thereof" clause of the 14th Amendment to meant that anyone physically born in the country was automatically granted citizenship. Race-neutral naturalization wasn't enacted until the Immigration and Nationality Act of 1952 [3] and racial discrimination and national original based immigration (not permanent residency as should be obvious) controls weren't banned until the Hart–Celler Act in 1965 [4].
[1] https://en.wikipedia.org/wiki/Naturalization_Act_of_1790
[2] https://en.wikipedia.org/wiki/United_States_v._Wong_Kim_Ark
[3] https://en.wikipedia.org/wiki/Immigration_and_Nationality_Ac...
[4] https://en.wikipedia.org/wiki/Immigration_and_Nationality_Ac...