What did the Supreme Court case of Plessy v. Ferguson do in the U.S.?

A. It granted women the right to vote
B. It upheld racist segregation laws in the US as "separate but equal," which became the law of the land
C. It ended the "separate but equal" legal doctrine
D. It upheld sexist laws in the U.S. that prevented women from holding office

B. It upheld racist segregation laws in the US as "separate but equal," which became the law of the land