California Gov. Gavin Newsom has signed legislation aimed at protecting children from the potential dangers of AI chatbots.