Judge Beverley Lang said Friday that Transport for London had breached its own guidelines when it approved the ban. But she said this was outweighed by factors against running the ad, which would cause "grave offense" to many people and increase "the risk of prejudice and homophobic attacks."

The judge gave the charity, Core Issues Trust, permission to appeal. She said the case raised freedom of speech issues that were of "fundamental importance."