...
You acted very noble, having done this, you helped this person in his difficult life situation. However, if he has such a bad life economic position, then he should not deal with gambling at all. Since this occupation brings chaotic money into life, as well as the loss of honest savings. And if someone has a family, then you cannot let chances determine your fate. Everything needs to be stable and calm.
Therefore, I am against gambling among the poor.
OP's action is considered noble because it helped him get some money to cover his family's expenses. But perhaps it unintentionally sparked in him the idea of gambling to earn income. So I personally would not welcome this action because in the long run it could cause unpredictable consequences for that guy if he falls into addiction.
That guy was wrong from the start by gambling with money he couldn't afford to lose and OP unintentionally supported him by giving him another chance to gamble. In that case OP should advise him to stay away from gambling and find other ways to help him. I think there is no shortage of ways to help someone if we want to help them.