WASHINGTON—House Majority Leader Kevin McCarthy (R., Calif.) will likely be elected Republicans’ minority leader Wednesday, ending a power struggle that has simmered since Speaker Paul Ryan (R., Wis.) announced his retirement in April.

Mr. Ryan’s unusual decision to flag his departure long before it happens in January triggered months of speculation over whether Mr. McCarthy could secure enough support to succeed him as speaker.

But...