The Jedi, while on the light side of the Force, were never a perfect organization. Many of the wiser Jedi Masters probably knew that the celibacy rule was a stupid rule and chose to look the other way. Jedi Master Vodo-Siosk Baas was such a master. Of course, in Anakin’s case, this did not work out so well.