Be that as it may. Just answering your question. Motivation has little to do with the act. The Union Army freed 3 million slaves.
What a strange thing to read in a discussion over a controversial war.
I hope your grand kids do not ask you to explain the difference between first degree murder and justifiable homicide.