Groups submitting amicus briefs to supreme court case in support of Republican lawmakers received $90m in anonymous donations