Meta, Facebook’s parent company, has agreed to pay $725 million to settle a class-action lawsuit.