Easy. The same way Congress passes legislation restricting speech when the first amendment clearly states, "Congress shall make NO law ..."
The SCOTUS has reversed itself before. I believe that error will be corrected, at the very least the 30 days prior to a primary election and the 60 days prior to a general election restrictions. Have you read the D.C. Circuit Court's decision?