His efforts received enormous amounts of funding from the Nazis.
Much of his specialized 'computers' were explicitly for the war effort, including planes.
He was a big fan of utilizing computing for racial and genealogy research. The Nazis had plans drawn out to murder orders of magnitude more people based on this sort of research had they won (Generalplan Ost).
It was not like he was forced at gunpoint to participate, he was all in for the funding. Much like Von Braun, but did not have the luck to be paperclipped.