Policy Gradient for Counterfactual Invariance in LLMs | HACKOBAR_