Tech giant Meta has agreed to pay $17 billion as part of a settlement to end a landmark trial over teen social media addiction, state attorneys general announced Wednesday.