The whole race thing is a red herring. Pretty much every "racist" law outside of the former confederacy was written with the Irish in mind and last I checked they were just as white (technically whiter if you want to hair split) as the wasps who championed those laws.
Those people back then were trying use government force to make it harder for people to live in ways they didn't like in the via regulation all the same as people do here and now in 2025. They used race/nationality as a proxy for that insofar as it was an accurate proxy (which is why in the US it largely fell out of favor starting in the 1950s after the culturally flattening effect of the depression + ww2).
Of course people who want to use government to micromanage other people's decisions in shortsighted ways in the present harp on the race bit, because to take a step back and assess the fundamentals of the sort of rulemaking being advocated for would be detrimental to their cause(s).
Those people back then were trying use government force to make it harder for people to live in ways they didn't like in the via regulation all the same as people do here and now in 2025. They used race/nationality as a proxy for that insofar as it was an accurate proxy (which is why in the US it largely fell out of favor starting in the 1950s after the culturally flattening effect of the depression + ww2).
Of course people who want to use government to micromanage other people's decisions in shortsighted ways in the present harp on the race bit, because to take a step back and assess the fundamentals of the sort of rulemaking being advocated for would be detrimental to their cause(s).