Train drivers are to vote on a multi-year pay offer aimed at ending their long-running dispute, it has been announced.