Gabbard, whose past foreign policy views have raised alarm among lawmakers, was initially considered a long shot for the role.