Longest-serving legislator in U.S. history to leave Wisconsi