The federal court trial in California is one of the highest-profile tests of allegations that social media companies have harmed young users.