Both.
The rebellion was about slavery for the rebels and preserving the Union for the Union.
GP addressed the former, Lincoln spoke for the latter.