Thames Water handed £3 billion lifeline as court approves restructuring plans to save it from financial collapse