California adopts privacy law aimed at protecting consumer data