Meta, the parent company of Facebook, has agreed to a settlement in a US lawsuit concerning the use of its platforms by children, according to a court document.