The company refused to grant the Department of Defense permission to use it for mass domestic surveillance or for fully autonomous weapons systems.