Ministers say the legislation promises the biggest overhaul in workers’ rights in a generation.