New Zealand has defeated Ireland in Dublin for the first time in eight years after a surprisingly one-sided 23-13 win.