Williamson’s captain’s knock puts New Zealand level