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
Charaf Elmoudden, 26, has been found guilty at Harrow Crown Court of burgling pop star Rita Ora's home.
Marcus Willis, a current club coach ranked 772 in the world, came through six qualification matches to reach this year's tournament.
Mouth artist Henry Fraser has posted a video showing his works from the first 18 months of painting and drawing.