How do protest movements like the one against SIR bring together different political parties?

I want to understand how a common issue, such as opposition to a government policy (like SIR), can lead to alliances between parties like Trinamool and Congress, even if they usually compete with each other.