Whether there is, or isn't a need isn't relevant. Sperm is something that you produce, you have ownership of it, if you decide to sell it, it's your choice. What other people do with it or to it is up to them. Once a contractual agreement has been reached, and ownership changed.
The only perimeters you have to follow is the law. Given that this question is questioning the law, you cannot use this law as a perimeter.
Some people choose to do that, some people choose to donate for money. However, what is done with the sperm isn't what this question is asking, this question is asking whether the donation itself should be illegal or not. If it becomes illegal, your argument becomes moot.
Then you are venturing off-course of the original question, which is fine.
However, your line of argument follows if x is used for bad reasons, it should be banned. However, you contradict that by saying if x is used for good reasons, it should be kept legal.
You can't have it both ways by the law, as this argument assigns present rights based on future actions. Future actions haven't happened yet, and are not grounds for present rights. If you are arguing morally, you would have to prove, and show why raising a child in a poor socioeconomic environment is morally wrong.