NSW lawmakers pass sweeping gun and protest laws after the attack at a Hanukkah event on Bondi Beach which left 15 dead.