NSW passes laws to shut down illegal places of worship following the Bondi attack, strengthening local council powers.