I bet that in practice that happens pretty rarely because it's risky (what if the legislator has cameras you don't know about, etc).
But I think politicians understand that capital and the national security state are very influential, and their careers will go much better if they do their bidding (without anyone ever explicitly asking them to). They'll find it easier to get elected, less interference from courts, great consulting and speaking gigs after they retire, and so on.