Court orders ‘ringleaders’ to stop illegal protests