Is it constitutional for corrupt politicians to pass laws to stop their corrupt election wins from being challenged?

Also in the package is a measure to reform Electoral Count Act of 1887 – a revision that reaffirms that the vice president has only a ceremonial role in counting electoral college votes and raises the threshold necessary for members of Congress to object to a state’s electors.