State workers union chief quits a day after members vote to accept ‘right-to-work’ language