Sorry, I don't follow you. Could you restate this?
Was it moral to not free those slaves he could have while to issue a decree freeing those slaves over which he had no control?
To free a man from slavery is always a moral good. That Lincoln's EP did not free all men does not mean that it was a bad thing, just that it was not a perfect thing.
It was flawed and self serving. That you wish to ascribe glory to that is fine.
We are humans. Everything we ever achieve is flawed. That doesn't make our achievements worthless. That's making the best the enemy of the good. If only the most pure of motivations are worthy, how are we to progress at all?