Yes it is. So is accepting the payment.
https://www.law.cornell.edu/uscode/text/18/597
As a sibling to your comment points out, the discount isn't in exchange for voting.
https://www.law.cornell.edu/uscode/text/18/597
As a sibling to your comment points out, the discount isn't in exchange for voting.