The Bledisloe Cup will remain in New Zealand for a 23rd straight year after the All Blacks beat the Wallabies 31-28 in a Rugby Championship thriller in Sydney.