Meta has agreed to pay $17 billion and add stronger child-safety measures as part of a landmark legal settlement that ended a trial over teen social media addiction and settled claims filed by 47 states, including Michigan.