The race pitted Democrats against each other due to California’s open primary where the top two contenders, regardless of party, advance to the general election. Khanna garnered 39 percent of the vote in June's Democratic primary, compared to Honda’s 37 percent.

The 17th District is home to parts of Silicon Valley, including Apple, and is largely affluent and ethnically diverse. The district’s major industries include computing hardware, software and biotechnology.

The Honda-Khanna race was a rematch for the pair, who also faced off in 2014. Honda, then, fended off Khanna, winning re-election by roughly 3 percentage points.

Honda’s 2016 re-election campaign was marred by an ongoing ethics investigation related to his 2014 campaign. The Office of Congressional Ethics found “substantial reason” to believe Honda and his staffers used official resources to advance his campaign, and tied official events “to past or potential campaign or political support.”

Khanna joins Illinois’ Raja Krishnamoorthi and Washington’s Pramila Jayapal as new incoming Indian-American members of the 115th Congress. He has ties to President Barack Obama and worked on Obama’s 1996 Illinois state Senate campaign. Some members of Obama’s re-election campaign also worked on Khanna’s race.

Khanna previously worked as a lawyer specializing in intellectual property and later worked for the Commerce Department under Obama. He plans to focus on economic ideas and promoting advanced manufacturing jobs to boost the middle class.

Contact Bowman at bridgetbowman@rollcall.com and follow her on Twitter @bridgetbhc.