New York state passes emergency legislation which sees guns banned in many public places