Reasons for Spain agreeing to the treaty