Causal Representation Learning with Observational Grouping for CXR Classification