The treaty you are referring to is called the Treaty of Ryswick, signed in the year 1697. It was a peace treaty between France and Spain, ending the Nine Years' War. To find this information, you can search for "treaty giving French legal right to Hispaniola." This search will lead you to sources such as historical records, books, or reliable websites that contain the information about the Treaty of Ryswick.