Obi-wan says that Anakin was a good friend… and doesn’t mention any kind of rule breaking by having a child. The idea of the dark side giving easier access to strength and power is one thing, but linking it to romance is a bizarre later addition. In fact all the OT discussion of the Force relates to things like a lust for action and excitement, in opposition to the peaceful zen-like themes of the Jedi way. What does not having friends and family have to do with being a good Guardian of the Republic?
I get the feeling that George mis-remembered ESB and the scene where Yoda tells Luke not to risk the future by running off to save his friends. Surely if attachment was a no-no then Luke would have a problem rescuing Vader? Isn’t being sad and trying to get him back against the Jedi way? I get that it wasn’t fleshed out until later but the PT stuff is ridiculous, and often contradicts itself anyway.