North Dakota’s longest-serving GOP lawmaker quits after texting a convicted child abuser