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
The organiser of a Pokemon Go meet-up in central London said he was amazed when suddenly thousands of people said they were going.
Adele surprised a fan with an accidental kiss on the lips when as she said hello at a show in Vancouver, Canada.
Jeremy Corbyn has denied allegations of bullying saying "intimidation is not allowed" in the Labour party.