The senator from Nevada, a tactician who has led Senate Democrats since 2005, said he had been contemplating retiring for months.