Representative Kevin McCarthy, Republican of California, is struggling to break through a wall of entrenched opposition from hard-right lawmakers even after agreeing to weaken his leadership power.