Senate Republicans elect John Thune of South Dakota as next majority leader, beating candidate backed by Trump allies