The ruling in Plessy v. Ferguson upheld the legality of
A) black codes.
B) the creation of the KKK.
C) segregated public facilities.
D) voting registration laws such as poll taxes