The Tonga Parliament has unanimously voted to change the constitution to allow Tongan tradition and custom to be applied in the courts.