One of the terms of a plan to restructure Thames Water “holds the company to ransom”, the High Court has heard.