Nonparametric Identification and Inference for Counterfactual Distributions with Confounding