N.C. Republican endorsed by Trump loses primary after mocking woman’s weight