Australia beat New Zealand inside three days to win cricket's first-ever day-night test match, wrapping up a three-wicket win on Sunday evening.