What was astonishing is they did not just decide to overlook a bit of eccentric sexual behavior and recruit him at the highest technical level for MI6 (or whatever it was called then). The man's brilliance was the difference between winning or losing the war. He saved more allied military AND civilian lives than any 100 other men combined.
That may have been possible because of all the secrecy around Bletchley Park, even after the war was over. People who could have done something to save him from the idiots, didn't know what he had done. But he also invented Game Theory, and they used that all the time at MI6, the CIA, etc. during the Cold War. It would have been a huge advantage to have him working for them.