But you just made my point, that the Union was not moved by a pure and principled motivation to abolish slavery, and was perfectly open to continuing slavery if it would restore the Union.

So the argument that Union= principled liberators, and Confederacy= evil racist preservers of slavery just doesn't wash. As I said above, Lincoln's Emancipation Proclamation only freed the slaves in Confederate states, not the ones in the Union who belonged to Lincoln's political benefactors.
And far from a principled hard line to abolish slavery, Lincoln was perfectly willing to continue slavery to end the war, and let Lincoln's allies keep their slaves.

I'm not sure why you think the Union's motives were principled, while you condemn only the South as motivated by slavery, when both had slaves (though far less in the North) and the North was perfectly willing to abide slavery as a bargaining chip to end the war their way.