Yes, but race was also very very central then,
https://en.wikipedia.org/wiki/1907_Bellingham_race_riot
(and even with that regime, Italians/Irish/Catholics etc. were discriminated LOL).
Today, US is forced to comply with anti-racial position so it can't quite do what it really wants - to open the doors to white-immigrants but to restrict it to everyone else. This happens in the background with the way the green-card process is structured, but frankly, I think everyone is well-served if we stop this farce and just have racial quotas. US empire is failing, so there's no need to keep up such pretences today.
There's quite a bit of research on how anti-racism was a strategy adopted by the US/West after WW2 to prevent the then freed countries (starting with India ironically) from seeking revenge for the centuries of total devastation and mass violence imposed on them.