How are states handling building violations according to the Supreme Court

The Supreme Court accuses states of trying to benefit themselves by ratifying building violations.