The Supreme Court on Wednesday ruled against the legality of the Shaheen Bagh protest, saying public spaces cannot be occupied indefinitely by protesters.