The 7-2 ruling returns the case to the commission directing them to review and take into consideration the religious views of the baker.
The commission, apparently, did not take those views into consideration in the original ruling.
The original law probably did not require such consideration, but considering the 1st Amendment's protection of religious belief, the commission should have at least mentioned why they were giving the PA requirements preference.
The first amendment only states that congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof.
As far as I can tell there was no law made that prohibited the baker from exercising his religion.
Unless of course the baker provided the quote from his religious text that expressly says baking a cake for sinners is itself a sin
It's not up to the government to decide how a person exercises their religion, unless there is a compelling government interest involved.
Saying "my religion allows me to murder people" is a compelling government interest.
To me enforcing equality in point of sale transactions is a compelling government interest.
Asking a couple to spend 15 minutes finding another baker for a non time sensitive, non nessasary, easily replaceable service is not a compelling government interest.