Inverting Estimating Equations for Causal Inference on Quantiles