It made up for them executing Nero in the first movie. And yeah, it was an execution. Any kind of battling was over and they were communicating.
But... the massive ship, despite its damage, was drifting into a known time travel phenomenon. A pre-emptive strike during a time of war.