The US House of Representatives voted to scold President Trump on Tuesday for his “go back” to your country tweets targeting four non-white congresswomen.

Following a chaotic debate, reps passed a resolution 240-187 largely along party lines that condemned Trump’s comments as “racist.”

“President Donald Trump’s racist comments have legitimized fear and hatred of new Americans and people of color,” a portion of the four-page resolution reads.

Republicans tried to sandbag the measure as it was being debated earlier Tuesday, by claiming that calling Trump’s comments racist broke a parliamentary rule against calling the president himself a racist.

Four Republicans — Brian Fitzpatrick, Will Hurd, Fred Upton and Susan Brooks — voted in support of the resolution, along with Michigan Independent Justin Amash and all Democrats who were present.

The resolution carries no legal weight and is symbolic.