A contract that permits or requires the retention of part of an employee's compensation to pay dues or assessments on the employee's part to a labor union is void unless the employee delivers to the employer the employee's written consent to the retention of those sums.
Tex. Lab. Code § 101.004