Meta has reached a settlement to end a federal trial in which dozens of states accused the social media giant of intentionally designing a product that's addictive to children.