Parents had argued that Downhills Primary was now thriving - and that turning it into an academy made no sense.
But, as he refused permission for a judicial review, Mr Justice Kenneth Parker said that it was a rational decision to turn it into an academy, in the light of the school's "egregious" past performance.
He said that it was clear that the Education Secretary "simply had no confidence" that the school would substantially improve if it remained within the control of Haringey Council.
On the other hand, he "believed firmly" that conversion to an academy would substantially improve performance.
More top news
The mayor claimed last week the bridge would cost more to cancel than to build. He said £37.7m of public money had already been spent.
The houseboat in Chelsea, west London, comes complete with three bedrooms, three bathrooms, a reception room and its own patio.
The city is one of a small number which has seen an increase in traces of the Class A substance over recent years.