This was a narrowly written opinion. It did not come close to answering the question of if someone could do this on religious grounds. The court only found in this case that the board that initially ruled on this showed bias against the baker and that he was not able to receive a fair hearing.
BTW the court did use a JW case in their decision.