Stable Predictions across Unknown Environments