The TUC says it is "putting ministers on notice" that it will challenge any attempt to remove rights.