A simple solution to this is mandating a contraceptive shot as long as the mother or her children collect any form of welfare.
A simple solution is to sterilize any man who has been proven to have fathered a child on an unmarried woman.