New Zealand spinner Glenn Phillips took the crucial wicket of Indian batsman Virat Kohli off the final ball of the day.