Thames Water urged regulators to allow them to raise customers bills hours after a High Court judge approved a £3 billion loan to the firm.