The Short Version
The claim matches the historical record. The Treaty of Tordesillas was signed in 1494 and established a line intended to allocate overseas lands between the Spanish and Portuguese crowns. The main caveat is technical: “Spain” is a modern shorthand for the crowns of Castile and Aragon, and the treaty also covered future discoveries, not only lands already known.