Hasan Ali puts New Zealand on the back foot