The world’s largest retailer is teaming up with an online, for-profit university to offer college credit for on-the-job learning.