The raid that extracted President Nicolás Maduro was the culmination of a monthslong campaign by President Trump and his aides.