If you stir up a hornet's nest, it's a near certainty you'll get stung.
Janeway actually hurt the borg and she expected the borg NOT to retaliate?
Despite the fact that crushing the federation like a bug was easily within the collective's capabilities (a fact Janeway knew)? That the borg had slipstream and other beyond warp transportation is common in the trekverse (as Janeway knew)?
Really?
Janeway acted as a 5 year old, not able to think beyond 5 minutes into the future, beyond getting the ship back to Earth and hurting the borg.
Janeway - and the crew - were either criminally negligent or criminally stupid or both.
They most definitely did NOT act to protect the federation.
And 64 BILLION payed with their blood for Janeway's egoism. A VERY HIGH price to pay for Janeway's wish fulfillment.
The very same thing can be said for the Borg in terms of their interactions with Species 8472, but they did so under the premise of assimilation, nothing more. If Janeway hadn't done something the Borg would have tried to assimilate the Federation anyways because that is their
directive. The Borg are going to assimilate cultures no matter what; there is no stopping that.
In
Endgame we are given the impression that the Borg are nearly crippled, which would seem to imply that they are not capable of retaliating for a long time (if at all). But of course, in the novels they bring back the Borg.
But Janeway acting as an egotistical five year-old? Really? And then placing all the blame for the deaths of sixty-four billion people on her shoulders? That's low.
The borg wouldn't have tried to assimilate the federation (with a large scale invasion) for decades without Janeway stirring up the hornet's nest - and starfleet would be in a far better position to confront them then -
as admiral Janeway proves by her existing.
And Janeway DID act as an egoistical 5 year old in 'Endgame', putting her returning home and playing the knight in shining armor above the federation's interests - the federation's very survival:
First by showing off transphasics to the borg (which was bound to increase borg interest in the federation) and then by destroying the transwarp hub (which was bound to make the borg really pissed off at the federation).
Consequence - in trek lit (which we were discussing):
64 BILLION DEAD - the result of an utterly predictable borg counterattack.
What was unpredictable was that the federation actually survived - by means of 'divine' intervention from the caeliar, that is.
PS - Never throughout 'Endgame' were Janeway&co under the illusion that they'll destroy the borg or cripple it significantly beyond destroying the transwarp hub.