第二次世界大戦のときのリーダー is the object of 祭る, not the subject, thus, the shrine enshrines the leaders (of Japan) in WWⅡ.
I don't know what the clause following it is, but ため would mean "because" here.
BTW, これは文particles (も,などとため)目的で何ですか doesn't make sense at all. What do you want to mean by it?