United Airlines flight attendants ratify new contract with 31% raises