@suseesuez
I have a vague recollection of that case and I don't remember the details all that well. So I am probably wrong-- but I just think it was a different situation entirely. In that case the health inspector and Suraj were clearly doing something illegal. Here I don't think it was quite so clear cut. The magistrate's ruling wasn't wrong according to the evidence he had available to him. Sandy wasn't being asked to do something illegal-- maybe slightly out of bounds of her routine duties but for the purposes of the story it wasn't something she couldn't be asked to do. Kavita trapped her well.
And how do we or she know that Kavita actually bribed the judge? Maybe Kavita convinced the judge or the SP that it would be good to show the world that Sandy can put her duties as a police officer before her family, since her reputation was ruined with the driving case? After the driving case, if Sandy put up a fuss all that would come of it is that Sandy favours her family.
Honestly, I would've preferred it if Sandy used her legal smarts to solve this case. But for the purposes of the story it seems that legally her hands were tied. Maybe in real life that wouldn't have been the case but the story they wanted to tell here was that Sandy can fulfil both her IPS and Patni roles at the same time -- which Kavita was saying she couldn't. Kavita just wanted it to be true so that she didn't have to feel bad about leaving Suraj at the alter.