The ruling could make it harder for state regulators to pressure advocacy groups.