The Union was fighting against secession. I think there is little debate about their motivation.
If that is true, we can forever dismiss the notion the North was fighting for the moral cause of “freeing the slaves.”
And all the self-serving hymn singing about “as he died to make men holy let us die to make men free” was just a pretext.