Texas Watchdog has two great pieces on how this is legal in Texas. (although not exactly ethical in most of our minds)
Texas State Sen. Rodney Ellis' firm profits from bond business with local public agencies, including many he represents in Austin, Jennifer Peebles and Steve Miller
Many Texas lawmakers mix public, private business", Steve Miller
You should go read both.