The retrospective shows how the artist has reckoned with structures of racial, gender and sexual oppression through her 50-year career