As I understand it, the first phrase is common. I'm afraid, I don't understand why is necessary the second "for" here (in bold). I think "to" is necessary here because "good men" isn't the subject, but the object.
The second phrase is mine. Does that sound good? Do you use only the first version as a standard phrase? Maybe you usually shorten this phrase like me. I think the second phrase has the same meaning as the original.
The only thing necessary for the triumph of evil is for good men to do nothing.
For the triumph of evil needs good people to do nothing.