BRST cohomology identifies physical states and observables with BRST-closed objects modulo BRST-exact ones. A change of gauge-fixing fermion changes the action by a BRST-exact term and therefore leaves BRST-cohomology classes unchanged when the measure has no BRST anomaly.
New to topics? Read the docs here!