Overnight results showed the ruling centre-right National Party and main opposition Labour Party were nearly deadlocked in the popular vote.