Fortunately we have a government of rational actors playing in ideal conditions to legislate for us!
It seems to me you would suggest acceptance cannot be achieved without government intervention, but from where I sit that is exactly what is happening - it just takes time.
Neither did the government passing laws. What ended these things, to the extent that they are ended (try looking up the figures for racially motivated violence in inner cities sometime), was changes in people's attitudes. And those changes are mainly due to compulsory public education plus generational turnover: the old bigots died and their children were indoctrinated with a different mindset.