who won the gettysburg battle in the civil war