American workers during the Gilded Age

What role did the government play in defining, protecting, and/or limiting the liberty of American workers during the Gilded Age?