What country was the first to legalize trade unions in 1824?

What country was the first to legalize trade unions in 1824?