NZ to pass counter-terrorism law after stabbings, mass shoot