Big court case defends religious freedom in small city