California lawmakers have passed a bill to loosen restrictions on how much and when local elected officials can accept campaign cash from interest groups, with the backing of developers and labor unions, to prevent "pay to play" and increase transparency.