The bill, signed by Gov. Gavin Newsom, is part of a wider effort to restrict the impact of digital technology on kids.