Hindsight is 20-20. Looking back, the death of Hugh's branch of the Borg would have been better for the UFP than what happened--the Borg force following Lore, and attacking the Federation and...
Bottom line: There are no easy answers in war. Many times, a nation finds itself having to go against "principles" in order to defend itself--or to end the war as quickly as possible. To be morally consistant, in the end, runs the risk of tying your hands...so that they can exploit your barriers.
"The saying implies but does not name the effective agency of its supposed utopia.... 'Needs and abilities' are, of course, subjective. So the operative statement may be reduced to 'the State shall take, the State shall give'."