Members of two unions representing British steel and textile industry workers have agreed to a merger.