Carnival Cruise Lines has settled before trial a sex-attack lawsuit that forced the big cruise operator to make public an embarrassing…