The entire thing wasn’t unconstutional though. They can only rule against the unconstitutional parts.
Yet Scalia, Thomas and Kennedy believe the whole thing is unconstitutional. What parts do you believe to be constitutional?