Republican Mike Johnson elected House speaker after dramatic vote reversals