After judges criticize municipality's conduct, sides agree on Saturday Simhat Torah celebration in city center provided no physical barriers are erected to separate sexes