The Masterpiece Cakeshop ruling was a narrow one, ruling that Colorado's process explicitly discriminated against the bakers - it showed forbidden anti-religious animus.
https://en.wikipedia.org/wiki/Masterpiece_Cakeshop_v._Colora...
> In a 7-2 decision, the Court ruled on narrow grounds that the Commission did not employ religious neutrality, violating Masterpiece owner Jack Phillips' rights to free exercise, and reversed the Commission's decision. The Court did not rule on the broader intersection of anti-discrimination laws, free exercise of religion, and freedom of speech, due to the complications of the Commission's lack of religious neutrality.
It'll probably be a few more years before we get a better test case for the issue that the Court can't as easily dodge.
And as the courts have recently confirmed, even protected classes cannot compel a business into speech that contradicts their own sincerely held moral and ethical beliefs.