The spike in prices Wednesday came after a U.S. government report said inventories of crude oil and gasoline declined last week .