Good. This doesn't — of course — mean that you can't punish acts of cruelty to animals.
ADDED: Here's the text of the opinion (which I don't have time to read at the moment). There is one dissenter: Justice Alito. The law that the Court struck down was a congressional response to "crush videos." In these, high-heeled women stepped on animals until they died, which some people find sexually stimulating.