Australia’s most populous state on Wednesday passed sweeping new gun and anti-terror laws following the recent mass shooting on Bondi Beach, tightening firearm ownership, banning public display of terrorist symbols and strengthening police power to curb protests.

The New South Wales state parliament passed the terrorism and other legislation amendment bill early morning after the upper house approved the bill by 18 votes to eight.

The bill passed the lower house on Tuesday with support from the governing centre-left Labor and the opposition Liberal party. The rural-focused National Party, the Liberal’s junior coalition partner, opposed the gun reforms arguing the ownership caps would unfairly disadvantage farmers.

The legislation follows the December 14 shooting at a Jewish Hanukkah celebration at Sydney’s famed Bondi Beach, where 15 people were killed and dozens wounded. The gun attack, Australia’s deadliest in almost three decades, prompted calls for stricter gun laws and tougher action against antisemitism.

Under the new laws, most individual gun license’s will be capped at four firearms, while farmers will be permitted to own up to 10 guns.

Police will be granted more powers to impose restrictions on public protests for up to three months following a declared terror attack, while public display of symbols of prohibited terror organizations will be banned.

“Globalize the intifada”, a chant usually heard during pro-Palestine protests, will also be banned after the government argued it encourages violence in the community.

Police believe the two alleged gunmen were inspired by the militant Sunni Muslim group Islamic State. Sajid Akram, 50, was shot dead by police, while his 24-year-old son Naveed has been charged with 59 offences, including murder and terrorism.