Oil extends gains after OPEC+ agrees to slash crude output