US crude inventories climb by 3.1 million barrels