This is a weird caricature of how a union works. Unions protect workers from being fired by their employers so I’m not sure what a union “boss” could do to someone who upset them.
Since you are asking me, If you read or scan the page you will see how unions historically operated in the US.
Companies can strongly suggest who employees should vote for and solicit donations to specific candidates.
As far as checking a record of actual votes, that's old days Tammany Hall kind of stuff. Not to say it wouldn't happen again if people could easily get away with it.
https://www.findlaw.com/legalblogs/in-house/can-a-company-te...
It is good that these laws continue to protect the voter's right to autonomy against new threats to it.