Weighting-Based Treatment Effect Estimation via Distribution Learning