California has taken a major step into the evolving debate over how to protect minors online, approving a far-reaching law that will change how digital platforms handle age data.