The reason gambling is illegal is because it's predatory. They're trying to convince people that they can beat the odds and become rich.
While he needs to get help, and take some responsibility for losing that money, he also deserves every penny returned to him.
You can't make something legal just by calling it something different.