Meta avoids trial over social media harm to teens