Constrained Reweighting of Distributions: an Optimal Transport Approach