The company behind Claude says it would rather lose defence work than weaken its ban on autonomous weapons and domestic surveillance.