Trump-endorsed North Carolina state Senate leader loses by 23 votes