More than 40 construction companies could face legal action over claims that they bought confidential information about their workers.