The first Extreme E race has a winner after its share of excitement, marking a historic moment for electric off-road racing.