Oil prices gained more than 2% on Wednesday, buoyed by potential supply risks should tensions between the U.S. and Iran escalate, while draws of crude from key stockpiles suggested stronger demand.