Court will decide whether to approve emergency £3bn loan for UK’s biggest water utility