Exclusive: Tech firm ends military unit’s access to AI and data services after Guardian reveals secret spy project