US wholesaler Costco has booked an increase in profits, boosted by the reversal of a pre-tax charge implemented last year.