A federal jury on Wednesday declared that the city of Philadelphia had violated the First Amendment rights of the local chapter of the Boy Scouts of America by moving to evict it from its city-owned headquarters if it refused to repudiate the anti-gay policies of the Scouts’ national parent group.

In its verdict, the jury of six women and two men found that the city had imposed an “unconstitutional condition” on the Scouts and declared that it was not “reasonable” to do so.