Oil trims gains after a huge increase in US inventories