Look at the bright side. Now Cruz can become either Attorney general or go on the Supreme Court...at either of which job he would be a real asset to the country and put his many constitutional and legal talents to good/better use!
I doubt Hillary would appoint him.