You can find the judgement at: https://www.supremecourt.gov/opinions/17pdf/16-111_j4el.pdf
It's clear from the text that the lower court's ruling was thrown out because of prejudicial behavior by Colorado's Civil Rights Commission during the hearing about this matter.
The Supreme Court didn't decide anything about the baker's actions, only that he wasn't given a fair process by the state.