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
Anthony Birdee from Deptford in south east London tied the English bull terrier, named Muller, to a post in his garden.
A report warned overcrowded streets could lead to a 'Hillsborough scale' tragedy.
Southern got just one star for punctuality, reliability, seat availability, frequency and value for money.