Which effect did the United States Supreme Court's decision in Plessy v. Ferguson have?

1. protecting voting rights for African Americans by eliminating literacy tests
2.ending segregation in all public schools in America
3. authorizing the system that kept black and white people separated
4. upholding the rights of all citizens to be treated equally by the government