Microsoft has stopped Israel's military from using some of its technology for its mass surveillance programme.