Treasury Wine Estate will pay $65 million to settle a class-action lawsuit over claims it issued misleading earnings guidance in 2018 and 2019.