I thought it was against the law to bribe for votes
Yes it is, but they can claim that it isn't technically a bribe per se since those getting free beer aren't being monetarily enriched by it.
They cannot go and sell any of the beer to someone else.
But, if I were the fuzz there, they'd be in deep trouble.