A new California law takes aim at the practice known as “pay-to-play” in which special interests make campaign contributions to local officials to sway a decision. The state senator who authored the law calls for its preservation and expansion after a judge tossed out a lawsuit trying to prevent it from taking effect.