Spain was the only NATO ally not to commit to a large increase in military expenditures. Its embrace of a social safety net is a key reason.