The trial, expected in January, is among the first to advance from a wave of litigation accusing social media companies of making their apps addictive and enticing to young people despite being aware of mental health and other risks.