The dangerous strain of bacterial meningitis appears to be spreading through sexual encounters between men who meet through websites or smartphone apps, or at bars or parties, according to the City’s health department. More than half of the infected men have had HIV, a virus that attacks the immune system making infections more likely and more severe.