The State Legislature has passed a bill permitting pharmacists to give meningitis vaccinations, a measure aimed at a deadly outbreak among gay and bisexual men in New York City.