WASHINGTON (AP) — The House rejected a resolution to censure Rep. LaMonica McIver, D-N.J., and remove her from a committee that oversees immigration and national security as she faces federal charges stemming from a visit to an immigration detention facility.

The House voted 215-207 to table the measure, a sign that some were uncomfortable moving forward with censure while McIver’s case is still pending in the courts. A trial in her case has been scheduled for November.

Democratic lawmakers unanimously voted to table the resolution, which was sponsored by Rep. Clay Higgins, R-La. Five Republicans joined them and two others voted present. As the resolution was being read, some Democrats were incensed. “Liar,” some shouted. “Shame,” yelled one Democratic lawmaker. Many Republicans streamed out of the chamber before the vote concluded. Democrats cheered and hugged at the final tally’s reading.

“The censure attempt against me has failed. Rightfully so. It was a baseless, partisan effort to shut me up,” McIver wrote on social media after the vote. “I was not elected to play political games — I was elected to serve. I won’t back down. Not now. Not ever.”

Republicans sought to punish McIver for a confrontation with federal law enforcement during a congressional visit to a new immigration detention facility in Newark, N.J. McIver has pleaded not guilty to federal charges accusing her of assaulting and interfering with immigration officers outside the facility.