The Supreme Court has nothing to do with the question.
By what authority does Congress impose the requirement that Cruz “come to the United States prior to attaining the age of twenty-three years and shall immediately following any such coming be continuously present in the United States for at least five years”?
I have already answered your question: Because they said they could.
As reference, there is no provision in the USC for SCOTUS to decide a law was unconstitutional. They simply decided they could. In Hylton v. United States and Marbury v. Madison, SCOTUS gave itself that right.
In the current law on NBC, AS IN EVERY LAW, there is an assumption that every passed and signed bill is a constitutional law, unless challenged in the courts and found unconstitutional.
Sorry, but Congress and SCOTUS override your personal objections. It’s called The Rule of Law.