When Racial Discrimination Is Legal