The premise that Spain "spared" territory for Portugal at Tordesillas (1494) is a common misconception. The treaty divided the non-European world between the two powers along a meridian 370 leagues west of Cape Verde.
Portugal's King John II rejected the initial papal bull (Inter caetera, 1493) which favored Spain. He leveraged his naval strength and the desire to protect his African/Asian routes to push the line west—securing Brazil (unknown at the time) and his eastern empire.
Spain (Ferdinand & Isabella) accepted the westward shift to secure their claim to Columbus's discoveries and avoid conflict. They gained the vast majority of the Americas.
Neither side "spared" the other; it was a hard-nosed diplomatic deal between rival imperial powers, mediated by the Pope.