Legislation is not one thing: tariffs are generally "bad" but ensuring quality of goods is "good" - we might not even think about the quality of the food we eat in the West since it is all in global, historic perspectives so high. This is equally thanks to legislation, not the free market which unchecked tends towards massive conglomerates with sufficient power to distort the entire economy.

Hell, even educating the masses beyond the need to work in the factories is evidence of the good side of regulation.