California passed the first U.S. law regulating AI chatbots after a teen suicide linked to Character.AI, mandating safety measures and crisis response.