Shares of Walmart Inc. climbed into record territory Wednesday, after the discount retailer’s management did its job to convince investors of the strength of its business and growth initiatives.