Of course it’s all legal. That’s not the point.
The point is that this is one more example of how the wealthy and powerful have more opportunity than others, even given the same laws.
This is no different in that aspect than the problem of rich people being able to hire the best lawyers to defend themselves, while the poor receive overworked public defenders. Everything equal, the wealthy have more opportunity.
If we want a society that is equal opportunity, our laws and regulations need to account for the natural emergent properties of wealth. Our progressive tax system is a narrow, feeble attempt at doing that, but it’s certainly not enough.