The move by the G.O.P.-led House was the first in what could be a series of votes seeking to punish those whom Republicans have deemed enemies of the party.