Domain Generalization and Adaptation in Intensive Care with Anchor Regression