If Trump doesn’t agree with the courts ruling that Cruz is qualified, those who think the court is wrong has the burden of appealing. Really, you think someone who wins in court should have to appeal the lower court’s decision?
It happens all the time. Lower courts get overturned.