A New Mexico judge has ordered Meta to pay $567 million in penalties and make changes to its apps, saying its social media platforms harm children’s mental health.