All but one member of New Zealand’s parliament voted on Wednesday to change gun laws, less than a month after deadly shooting attacks on two Christchurch mosques that killed 50 people.