By objecting to the electoral vote outcomes through the Counting Electoral Votes In Congress statue, Cruz and the others clearly are violating the 12th Amendment.
The 12th Amendment only gives the power to count electoral votes not challenge those votes.
So much for Cruz and his judicial philosophy of originalism.