New South Wales Parliament has passed a new law tightening firearm possession requirements and strengthening police powers in response to a deadly anti-Semitic attack.