In a highly politicized vote, the Republican-led chamber criticized Ms. Omar’s statements about Israel, delivering retribution for the removal of G.O.P. members when Democrats held the majority.