Costco Wholesale Corp. late Thursday reported lower-than-expected profit and sales for its fiscal third quarter as online sales growth eased.