The only way to stop this is to vote out the legislators that favor this kind of thing.
Yet everybody is too wrapped up in their red/blue tribal BS to pay attention to practical matters in the real world. If we'd just set aside all of that bickering, and actually use democracy like it's designed, we could make things a whole lot better. But instead we have to go down the path of "the opposing party is evil, we have to ensure they don't get in office, even if our guy does have some warts". That is not what is most important!