The move comes as China and Russia seek to turn the Israel-Hamas war to their advantage, creating dilemmas for Japan's Ministry of Foreign Affairs.