While officials are exploring measures to prevent a repeat of such dramatic protests, they are also contemplating legal action against them