To simplify a bit, if your company is based in the U.S. and subject to National Labor Relations Board jurisdiction, this is illegal. Knowledge of this is a nice tool to have in your back pocket while dealing with management and HR.
(Further information on whether your company is covered: https://www.nlrb.gov/rights-we-protect/jurisdictional-standa...)