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
Rahman was ejected from his powerful job in April by an Election Commissioner after being accused of corrupt and illegal practices.
The service was due to start in September but there is no agreement on pay and conditions such as how many night shifts staff will work.
Would you know what to do if you needed help? Here's the official advice from the Foreign Office.