Buttigieg rose from being a small-town Midwestern mayor, becoming first openly gay candidate to seriously contend for the presidency