Rosa Curling, a lawyer with solicitors' firm Leigh Day who is acting for the campaigners, said:
"This is a tremendous victory for all the people of Lewisham and for the thousands who have campaigned for this well-run, successful hospital to remain open.
"This mobilisation of the public in support of Lewisham Hospital has been extraordinary. Motivated by injustice, those who have campaigned for its survival have successfully shown that the decision taken by Jeremy Hunt to downgrade and close many of the hospital's services was wrong and unlawful.
"Real questions must now be asked about the decisions being taken by this Government in relation to healthcare.
Jeremy Hunt cut services at Lewisham Hospital because of financial difficulties faced by its neighbouring trust, South London Healthcare.
"These difficulties were caused by disastrous PFI contracts entered into by South London, which were costing #60 million a year to service.
The court found Jeremy Hunt had acted outside his powers by trying to make Lewisham pay for the financial problems of its neighbour.
"The Secretary of State cannot respond to the financial difficulties caused by the Department of Health's damaging PFI policy by simply imposing cuts on NHS services from above.
"This judgment should serve as a warning to the Government that, if they try to do this, local communities will fight back to ensure their healthcare services remain in place."
More top news
A 20-year-old man who died in a triple stabbing outside Parsons Green Tube station has been named by police.
David Jones was responding to London's Fire Commissioner who said the term 'fireman' was outdated and should stop being used.
A report published by the Boundary Commission for England details plans to reduce the number of MPs by scrapping 50 constituencies.