The correct statement is:
the Union winning the Civil War, ultimately abolishing slavery within the whole country.
This statement explains that the Thirteenth, Fourteenth, and Fifteenth Amendments were added to the Constitution in the context of the Union's victory in the Civil War, which led to the abolition of slavery and the establishment of rights for former enslaved people.