Threats and the public constraint on military spending