Checks and balances
If a defective bill is passed, it will have to pass the hurdle of the SCOTUS.
So, the rule of law and the constitution will win.Inappropriate behavior will lose.
Pelosi is a liberal. There are five justices on SCOTUS, who are conservative.