SAS secures final union cost-cuts agreement