In Ep 2 Obiwan mentions to Anakin "You will be expelled from the order" for wanting to go back to Padme and lose pursuit of Dooku Anakin also was married and had both a lover and a child. Something that is can get you kicked out by the Jedi order. But Anakin couldn't really be banished or expelled because he was the chosen one after all, the one that would bring balance to the force. So had the Jedi actually found out about this relationship could they still have expelled him? Or maybe they'd let it slide because he is the chosen one. Because if they were to have found out about it and not expel him, the whole fear of padme dying probably could've been saved and Palpatine probably wouldn't have made his genocide successful.