Ireland beat New Zealand in Dublin