After chasing a second Borg ship through a temporal vortex, the Enterprise-E crew sticks around long enough in 2063 to stop the Borg from preventing humanity's first contact with the Vulcans.
Q's warning about the Borg in Star Trek TNG saved the United Federation of Planets from certain destruction. The Borg's encounter with the Enterprise-D led to Earth's vulnerability being exposed ...