William Weld, a former governor of Massachusetts who two years ago ran for vice president on the Libertarian Party ticket, on Monday became the first Republican to challenge President Donald Trump in the 2020 primaries.