A vote over a contentious treaty bill saw New Zealand MPs interrupt parliamentary proceedings with a spirited haka.