Those who write the new bills give them insider information on how to trade stocks if they are all bribed to pass the bills into law.  Laws are extremely powerful in manipulating the markets to accommodate them and if you know what will be passed ahead of time you can invest accordingly. This is why all congressmen have an investment portfolio that performs very well.