A swath of prominent Republicans spoke out against the ad, which was widely viewed as despicable.