An MP has said he intends to appeal against a High Court judge’s decision to approve plans to restructure Thames Water through a loan of up to £3 billion.