Invariant and Transportable Representations for Anti-Causal Domain Shifts