Train managers at Avanti West Coast have accepted a deal over a long-running dispute, ending the threat of further industrial action.