A judge rejected the councils' claim that the mayor's plans to close 10 fire stations were legally flawed for a number of reasons, including a failure to take into account the reality of increased fire risks in inner London.
Campaigners say the cuts, which involve the loss of more than 500 jobs and the axing of 14 engines, would be "reckless, wrong and will seriously endanger lives".
But Mr Justice Foskett ruled the process by which the closure decision was reached was lawful.
He said: "I appreciate that the outcome will come as a disappointment to a number of people who had hoped to see the proposed changes to the provision of fire services in their area set aside."
More top news
George Osborne told MPs London would shoulder a large part of his 37% reduction in transport funding.
The prison was originally opened in 1852 as a mixed prison before becoming the first female-only local prison in England in 1902.
A man who tried to help a woman, who was being assaulted by other passengers on the Victoria Line, ended up being punched in the face.