Under Charlie Bell, Microsoft’s cybersecurity business grew, but the company also dealt with the fallout from cyberattacks.