Meta agreed Wednesday to pay $17 billion and add stronger child-safety measures to its Facebook and Instagram platforms 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.