Or let say that a cab driver see a child who missed the buss back home. However, the cab drivers contract says he is not allowed to pick up passages who can't pay. Without the drive back home, the child need to walk several miles.
This is what people call moral dilemmas. To help a child, or to follow the contract.
There's no dilemma preventing you from helping the child.
It is possible that you can spend money to buy a new copy, in the same way that the cab driver could "pay" his employer the drive the child home. However, anyone who sees the child could also spend the money for the cab. Is the argument here that they are all equally moral bankrupt when they child end up walking all those miles home? Does it matter that the cab driver was driving in that direction anyway?
Many people around the world can say that they are helping children to become the best they can be. Someone who refuse sharing can not. Which one are you?
This is a “let them eat cake” response. All problems could be solved if one assumes endless resources.
Also, you are assuming the software is still for sale. Perhaps it never was on sale; perhaps it’s a student-only edition provided by an institution. The point is: There are two choices: Obey the restriction the owner has decided and deny your help, or help the child and break your promise to obey the restrictions.
I could do that, and then the ethical burden would fall on me to motivate why society would benefit more from my use of the software than it would benefit everyone I would potentially deny to receive a copy of it.
But, the way you phrase it (“claim on the fruits of the software authors labor”) presupposes that it is property, and a rivalrous one at that. However, software is a non-rivalrous good, and whether it should be considered property is the question we are debating.
Also, does a mere legal barrier suffice to make something an excludable good? Could you turn, for example, the observing of the Statue of Liberty into an excludable good merely by passing a law mandating that only those allowed may observe it?
How about if you promised not to do that in your acceptance of the license agreement?
Your friends "need" isn't necessarily a valid claim on the fruits of the software authors labor. (A "need" for software? Come on.) It might make a very compelling argument that the author should choose to gift a copy to your friend, or offer an educational version (as many do), but I can't see the logic that a need is a valid claim, moral or otherwise, on someone else's work.