The shift, driven partly by a stabilizing yen, has spurred U.S. capital inflows into the tech-heavy Nikkei 225 Stock Average.