Legislation passed to protect vulnerable workers