Japan’s participation was made possible by a visiting forces agreement reached with the Philippines amid China tensions.