A Transport for London spokesman said: "The High Court has found that we were right not to run the Core Issues Trust's advertisement as it would have breached Section 149 of the Equality Act 2010.
"The advertisement clearly breached our advertising policy as it contained a controversial message and was likely to cause widespread offence to the public.
"This was borne out by the hugely negative public reaction the advertisement generated, including on social media and newspaper websites.
"We are taking steps to address the judge's comments regarding our internal processes."
More top news
Police are investigating whether a Land Rover Defender found burnt out in West Horsley was involved in Tuesday night's ram raid.
The work, called Gift Horse, replaces the giant blue cockerel that previously sat on the plinth.
50 of the country's worst pollution blackspots are in the capital. Many in places you may visit every day.