What did the Union forces achieve by the end of the battle?