The country long had the world’s second highest HIV infection rate, but made notable progress and hit key milestones in its fight against the epidemic in recent years.