The House speaker vote was a litmus test of President-elect Trump's ability to unify a fractious Republican Party.