It was necessary to enforce by law the central premise of the American Founding: the proposition all men are created equal. The country was changed for the better and America is the stronger for it today.
And that's on top of the fact that the law has no constitutional basis.