Union representing nursing homes workers says state failed to protect workers and their patients