How can the erosion of workers’ rights impact the overall development of a country?

I want to understand how changes in labour laws or weakening of workers’ rights can affect not just employees but also the larger society and economy.