Costco Wholesale’s first quarter of its fiscal year 2024 came in better than expected, with beats on both the top and bottom lines.