Before signing legislation to combat New York State’s growing heroin and opiate addiction problem, Gov. Andrew M. Cuomo compared the epidemic’s death toll to the number of people who died during the peak of the AIDS crisis.