Senators Ted Cruz and Josh Hawley, among others, had previously made noise about challenging election results in several swing states.