What document changed the purpose of the Civil War from one of states' rights to that of slavery?

the Thirteenth Amendment

Declaration of Independence

Emancipation Proclamation

the Fugitive Slave Law