City health officials, he wrote, aren't assigned the "sweeping and unbridled authority to define, create, authorize, mandate and enforce" the health code.
Justice Anthony Kennedy, seen as the swing vote between liberal and conservative justices, said he was "troubled" by how the law appeared to intrude on states' authority to define marriage as they saw fit.