The deal requires Meta to impose age restrictions and limit addictive features for children.