The NJ attorney general said the club engaged in practices that prevented women from being members and gave few women the chance to be employees.