The police commissioner’s declaration to ban protests comes after parliament passed new laws in the wake of the Bondi attack.