It isn't illegal at all. Insider trading is legal for legislators. Has been for years. Some years ago congress voted to make it illegal, to great public fanfare, then voted very quietly to make it legal once again. Sure, it's unethical, but they didn't break the law.