they are all protected but refusing to serve blacks was later made illegal. I don't think it should be illegal, if people are dumb enough to turn away money then let them follow their idiotic beliefs.
You're mistaking their situation - the restauranteurs were not 'turning away money' out of racism, they were following the dictates of the market. The great majority of their potential customers were white, and these whites would refuse to eat in the company of blacks, so banning blacks was the more rational, self-interested, laissez-faire capitalist course of action.
That was then. I believe now times are different and the majority of whites aren't racist.