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
Dry with clear spells periods across the south tonight, further north, cloudier conditions bring the chance chance of light showers.
Five-year-old Yusuf Abdismad died from meningitis in January after a mix-up between emergency operators, it has emerged.
A strike by members of four unions, RMT, Aslef, TSSA and Unite, is expected to bring the Underground to a standstill tomorrow evening.