Shares of Costco Wholesale Corp. were down 2.5% on Friday, making it one of the S&P 500’s worst performers for the day, following quarterly results a day earlier that were marked by weaker-than-expected same-store sales and slipping membership-renewal rates.