Aslef said 96.6% of its members who voted backed the deal, marking the end of long-running strikes.