New Zealand clinched their first-ever ODI series win in India with a 41-run win over the hosts in the third ODI in Indore.