If I recall correctly, the Emancipation Proclamation only freed the slaves in the rebellious states, not in the Union . . .
Correct. Slavery did not end nationwide until the 13th Amendment in 1865.