In effect, the ruling comes down in favor of the baker because it finds fault with the Colorado commission's deliberative process, not actually with CADA, nor does it say that religion must take precedence, merely that it must be considered. Both sides are going to pull pieces from this for future cases. I applaud Kennedy for trying to address the complexity of the issues here but it doesn't settle much.
IANAL. (edited for typo)