Beyond Invariance: Test-Time Label-Shift Adaptation for Distributions with "Spurious" Correlations