Actually, he followed judicial precedent, and made it clear that the precedent conflicts with the law.
Your opinion, mine is that the SCOTUS made new law, hence my use of the term law rather than precedent.