The CEO of Meta testified in a landmark case alleging his company and others designed platforms to be addictive to children.