County repeals solar amendment under threat of Sierra Club suit