The state's attorney general had accused Meta of misleading users about the safety of Facebook, Instagram and WhatsApp and of enabling child sexual exploitation.