New Zealand made history by beating Australia to set a new record of successive tier-one Test victories.