Not legal, unfortunately.
https://en.m.wikipedia.org/wiki/Taft%E2%80%93Hartley_Act
The Taft–Hartley Act amended the 1935 National Labor Relations Act (NLRA), adding new restrictions on union actions and designating new union-specific unfair labor practices. Among the practices prohibited by the Taft–Hartley act are jurisdictional strikes, wildcat strikes, solidarity or political strikes, secondary boycotts, secondary and mass picketing, closed shops, and monetary donations by unions to federal political campaigns.