Jacob Duffy took 5-42 as New Zealand bowled out the West Indies for 138 on a deteriorating fifth-day pitch to win the third Test by 323 runs and take the three-match series 2-0.