The House on Thursday voted to table a Republican resolution to remove Representative Eric Swalwell (D., Calif.) from the House intelligence panel over his past ties to a suspected Chinese spy who allegedly targeted U.S. politicians.

Democrats dismissed the effort, brought by House GOP Leader Kevin McCarthy, in a 218-200 vote. Every House Democrat voted to table the measure. Three Republicans cast โ€œpresentโ€ votes.

McCarthyโ€™s resolution said the California Democrat โ€œhas not denied public reporting that a suspected Chinese intelligence operative helped raise money for Representative Swalwellโ€™s political campaignsโ€ and pointed to โ€œother troublesome elements of public reporting.โ€

The effort comes after Axios reported in December that a Chinese woman named Fang Fang helped raise money for Swalwellโ€™s campaign and had placed at least one intern in his office.

McCarthy argued that members who are appointed to the Intelligence committee โ€œmust possess the highest level of credibility and characterโ€ and that โ€œno member should be compromised in any way.โ€ Members of the committee are regularly briefed on sensitive national intelligence and Republicans are concerned Swalwell has been compromised by a foreign power.

In a letter to colleagues on Thursday, House Intelligence Committee Chairman Adam Schiff defended Swalwell as a โ€œtrusted member of our committeeโ€ and said the congressman had โ€œacted fully in accordance with his responsibilitiesโ€ after federal investigators alerted Swalwell to their concerns and briefed Congress about Fang in 2015.

Swalwell says he stopped corresponding with her at that time and authorities have not charged him with any wrongdoing.

Schiff said that Republican leaders, including then-House Speaker John Boehner and the then-chairman of the intelligence panel, Representative Devin Nunes (R., Calif.), were briefed on the situation at the time and โ€œexpressed no opposition to his continued service on the committee.โ€

In December, Swalwellโ€™s office maintained that he had โ€œlong agoโ€ given information to the FBI regarding Fang, He said he had met her more than eight years ago and not seen her in almost six years.

Earlier this week in an appearance on MSNBC, Swalwell said that when he was told someone who was helping his campaign โ€œwas not who we thought they were, we kicked the person out, and we helped the FBI.โ€ He said he would not reveal any further details, saying he had โ€œhonored my oath to national securityโ€ unlike those who had leaked it several years later.

โ€œItโ€™s only about payback right now because of my role in the impeachment proceedings, and holding the president accountable,โ€ Swalwell said. โ€œAnd I think people see through that.โ€