Family planning funding alone could not stop HIV from infecting the 1.2 million Americans living with the virus that causes AIDS, but it did help slow the virus’s spread in sub-Saharan Africa, particularly when governments widely denied the need to make treatment and prevention high priorities.