Adarabah, please enlighten us.
Almost all of the malchei yisroel were terrible reshaim. Nevertheless, countless miracles happened through them, because it is still a kiddush hashem if the yidden win a battle.
Also, Moshe rabeinu's excuse to hashem not to wipe out the yidden by the slav, is that the goyim don't understand the concept of being frum or not, and the being punished can end up being a chilul hashem.
The same thing is with the Israelis. Religious or not, they're looked at by the world as the Jewish people, and then winning is a kiddush hashem