If you read the Court's opinion, that's not AT ALL the logic they expressed in their ruling, either that one or this one.
They based their rulings on what laws said, not whether racism was or was not over.
It's up to lawmakers to gauge whether racism is or is not over and write laws accordingly. The SCOTUS can not and does not write rulings based on that.