Scalable Out-of-distribution Robustness in the Presence of Unobserved Confounders