The slavery component was introduced long after the war began to help foster moral support for Lincoln’s goals.
Sorry but the support came from the conscription act and not the Emancipation Executive Order.