EU legislators reach landmark political agreement but more is needed to guarantee workers’ rights