Donald Trump’s brand of politics didn’t fare well on Election Day. But Ted Cruz’s picks did even worse. And he’s tested the bounds of the law along the way.