US warehouse retailer Costco has booked an increase in income for the first half of its financial year, with sales boosted by higher gas prices.