At the eleventh hour workers at the Dakota City facility of US meat giant Tyson Foods have agreed a new contract.