Of course he got hammered for it because it was a) ideologically driven by his religious supporters and b) a terrible idea because handing out some free condoms and teaching women and men family-planning techniques leads to a more prosperous and stable environment at every level of society.
Just another one of the many poorly-thought-out policies he pursued during his presidency.