IIRC that lasted until the 1930s.
It’s allowed under the US Constitution IMO.
That law still existed in the early 60’s.