The jump in chips and AI spending comes at as Japan is trying to strengthen its capacities in frontier technology, and the U.S. and China race ahead.