How was Antietam a pivotal battle in the civil war?

It was the Northern victory that Lincoln was waiting for, so that he could issue the Emancipation Proclamation without sounding as though it was a desperate measure.

This made the North feel that they were fighting a moral crusade, and made it impossible for other countries to help the Confederates without looking pro-slavery.