Upon constitutional founding, black people were worth 3/5ths of a person. Many policies after the civil war have continued to either outright discriminate, or have been used overtly in discriminatory fashion.
If a policy is ruled as constitutional, it does not actually mean that it can't be racist or inhumane.