The result removes a long-serving and outspoken critic of both President Donald Trump and Israeli policy from Congress.