Apartheid question

If the USA is a white supremacist social order… why did we use sanctions on South Africa to influence the end of Apartheid?