Facebook will pay $40 million to settle a lawsuit claiming that it misled advertisers about the success of video