Causal Inference for Human-Language Model Collaboration