The policy set out modest dress rules for women and would have required men to attend services at least six times a week at a local synagogue