Oil extended gains from a nine-month high after an OPEC+ deal.