Lacking the intellectual infrastructure to think through policies on its own, BJP often just toes the Congress line, even when this explicitly goes against the party’s own stand in opposition and outrages its supporters.
Also, what is 'stand in opposition'.
I think the sentence is grammatically perfect but Grammarly shows up a problem with the possessive used with the party.