New Zealand passes law banning most semi-automatic weapons