That description is not really accurate.
It's more that the Supreme Court shut down an effort to use state law to override federal law.
The ruling had nothing directly to do with cancer. The feds required a certain label, and the state law was being used to force a change that was illegal under federal law.