The euro on Wednesday gained against the dollar, erasing an earlier decline after European Central Bank President Mario Draghi confirmed the eurozone’s recovery is on track.