The House passed a resolution to condemn what Democrats say were President Trump’s “racist” tweets Tuesday afternoon, 240-187.

After hours of debate and fallout from House Speaker Nancy Pelosi’s (D-CA) controversial remarks on the House floor, lawmakers voted to pass the resolution condemning Trump’s remarks as “racist.”

After a lengthy parliamentary battle, the House votes to condemn remarks by President Trump aimed at four Democratic women lawmakers https://t.co/xaGnv6pzer pic.twitter.com/9cu7oCuhaK — Jamie Dupree (@jamiedupree) July 16, 2019

The resolution “strongly condemns President Donald Trump’s racist comments that have legitimized and increased fear and hatred of new Americans and people of color” and states that the House “believes that immigrants and their descendants have made America stronger, and that those who take the oath of citizenship are every bit as American as those whose families have lived in the United States for many generations.”

Four Republicans sided with Democrats– Reps. Will Hurd (R-TX), Susan Brooks (R-IN), Fred Upton (R-MI), and Brian Fitzpatrick (R-PA). Former Republican Rep. Justin Amash (I-MI) – now an independent – sided with Democrats as well:

Hse approves a resolution condemning the President’s “racist comments directed at Members of Congress. The vote was 240-187

All Democrats voted yea. 4 Republicans voted yea. Fitzpatrick Hurd Upton BrooksIN. Also yes, independent Amash. — Chad Pergram (@ChadPergram) July 16, 2019

The 4 Republicans who joined Democrats in condemning President Trump’s racist tweets: • Rep. Hurd (TX)

• Rep. Upton (MI)

• Rep. Fitzpatrick (PA)

• Rep. Brooks (IN) – @AlexNBCNews — NBC News (@NBCNews) July 16, 2019

Chaos broke out on the House floor earlier after Pelosi described Trump’s remarks as “racist” and attempted to shame members of Congress who would reject the resolution.

“It’s so sad because you would think that there would be a given that we would universally in this body just say ‘of course, of course,’” Pelosi said. “There is no excuse for any response to those words but a swift and strong, unified condemnation.”

“Every single member of this institution– Democratic and Republican– should join us in condemning the president’s racist tweets,” she continued.

“To do anything less would be a shocking rejection of our values and a shameful abdication of our oath of office to protect the American people,” she added, triggering boos from lawmakers.

Pelosi: "Every single member of this institution, Democratic and Republican, should join us in condemning the president's racist tweets. To do anything less would be a shocking rejection of our values and a shameful abdication of our oath of office to protect the American people" pic.twitter.com/hPbJizMBl6 — NBC News (@NBCNews) July 16, 2019

It was determined that the speaker broke the rules, but she ultimately refused to revise her remarks.