Friends say that after Ryan passed tax reform, his longtime dream, he was ready to step out of a job that has become endlessly frustrating, in part because of President Trump.