Costco Wholesale Corp is expected to post a rise in quarterly earnings on Thursday as the spending power of Americans with store memberships remains largely intact even as surging inflation dents profits of major U.S. retailers.