Microsoft Corp. announced a four-year, $10 billion investment package in Japan, part of the US company’s Asia-wide push to expand in a region hungry for artificial intelligence services.