He worked hard to shock the country into dealing with AIDS as a public-health emergency. But his often abusive approach could overshadow his achievements.