U.S. troops have long complained about being required to take too many online courses, and even Elon Musk has taken notice.