Spain passes measures to protect workers amid climate emergency