Thames Water has won support from three-quarters of its creditors for an emergency funding deal which would throw the struggling utility company a £3 billion lifeline.