Mate:
just imagine that Nazi in Germany will go to come to some "shrine" and will celebrate Hitler...
I do not think that people go to the Yauskuni Shrine to "celebrate" war criminals or wars. If you ask them what they prayed for, the most will tell you they prayed for peace and not to make the same mistakes they made. Praying at a place where war criminals were buried does not necessarily means they agree with them.
When US presidents send floral arrangements at Confederate Cemetery, do they agree with the goal of Confederate army? No.