Facebook's value (cash and stock) 'flowed' to Instagram's owners because Facebook thinks Instagram will be worth even more to Facebook's owners.
It's not like they bought a consumable that's used up, and thus can't buy other necessary consumables.
And a lot of that Facebook value only exists because the universe of owners (and potential owners) believe that Facebook will keep preserving and growing that value by doing these sorts of things.
If that same 'investment' could have had a better 'impact' for the Facebook owners elsewhere, they'd do it.
If you mean some other sort of 'impact', for the good of people other than the Facebook owners, then essentially, no, that investment value can't be alternatively deployed that way. The value exists because of the faith it will be used in self-propagating ways. The equity value would simply evaporate once the confidence in it is broken: it's not transferred anywhere, it just disappears.
And if you engineered a world where this sort of 'wrong' bonanza can't happen, by design, then the big stacks of value either on the Facebook side ($1B), or on the Instagram investors' side ($250K), would never have condensed in the first place. Their existence was conjured up from previous bonanzas, or the expectation of potential bonanzas. Eliminate the potential for such bonanzas and you don't free up value for impactful redeployment elsewhere: the value never even exists.