By ruling in favor of a baker who refused service to a gay couple, the Supreme Court protected America’s freedom of religion.