New law sets out trade unions role