Mark Zuckerberg testified in a major social media safety trial as Meta and other platforms face claims their apps harmed young users.