Microsoft has initiated a lawsuit against a group the company claimed was abusing its artificial intelligence (AI) service.