Japan plans to beef up its stagnant defense spending to counter China's growing strength.