States are enacting laws to prevent AI chatbots from offering mental health advice to youth after tragic outcomes.