This is true. But fatal flaws such as the fact that Medicare cannot negotiate prices with drug companies are not accidents but rather artifacts of corporate lobbying. There are many examples of rent seeking like this across the system
They know exactly what the downstream effects of these programs will be. Regulatory capture is a well attested phenomenon, so I’m skeptical of any claims that all the Byzantine policies that just so happen to favor big business came about haphazardly
But I do believe many government regulations and laws that may seem like sphaghetti against the wall at first are actually very intentional and lucrative to someone.
A lot of things happen that way, just horse trading and trying to get re-elected.