The day after President Trump castigated Senator Thom Tillis for opposing the bill carrying the president’s domestic agenda, the North Carolina Republican said he would not seek a third term.