Google's YouTube has settled with a minor who claimed the platform caused mental health harms, the plaintiff’s lawyers said.