A Westchester County, N.Y., town violated a federal act barring religious discrimination in land use decisions by putting one obstacle after another in the path of a Pentecostal congregation’s plans to build a new church to accommodate its growing flock, according to a federal judge.

Southern District Judge Stephen C. Robinson ruled that the town of Greenburgh used fire, safety and traffic concerns as pretexts to derail a project proposed by the Fortress Bible Church that the town supervisor and some board members had wanted to kill from the outset.