Thames Water wins bondholder approval for £3bn emergency loan