The Democrat-controlled House of Representatives passed a resolution on Tuesday night condemning President Donald Trump for his "racist comments" about four Democratic congresswomen of color.

The resolution passed largely along party lines — 235 Democrats joined by only four Republican supported the measure — following hours of back-and-forth and gamesmanship between Republicans and Democrats, which included a GOP objection to House Speaker Nancy Pelosi's remarks about Trump and whether she would be allowed to keep speaking on the floor.

The four Republicans who voted for the resolution, which "strongly condemns President Donald Trump's racist comments that have legitimized and increased fear and hatred of new Americans and people of color," were Will Hurd of Texas, Fred Upton of Michigan, Susan Brooks of Indiana and Brian Fitzpatrick of Pennsylvania.

"There is no room in America for racism, sexism, antisemitism, xenophobia and hate. I voted to condemn the President's tweets today but I hope that Speaker Pelosi also considers holding members of her own party accountable to the same degree to which she holds the President," Hurd tweeted.

Rep. Justin Amash of Michigan, who announced his departure from the Republican Party earlier this month, also voted for the resolution.

"These comments from the White House are disgraceful and disgusting, and the comments are racist," Pelosi. D-Calif., said as she introduced the resolution to condemn Trump's incendiary remarks.

After the vote, Rep. Al Green, D-Texas, introduced articles of impeachment against Trump on the House floor in a bid to force a vote on the issue, which Democratic leaders have opposed.

"What do you do when the leader of the free world is a racist?" Green asked. "What do you do? You file Articles of Impeachment, impeaching the president of the United States of America." The resolution was not taken up Tuesday night.

Trump tweeted Sunday that, instead of criticizing his government, the four congresswomen should "go back and help fix the totally broken and crime infested places from which they came."

"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. I urge a unanimous vote," Pelosi said.

Rep. Doug Collins, R-Ga., asked Pelosi whether she would like to "rephrase her comment." House members are barred from making disparaging remarks about the president on the House floor, but the resolution was aimed at criticizing the president for comments directed at the four congresswomen, who he said should "go back" where "they came" from.

Pelosi said she had "cleared my remarks with the parliamentarian before I read them," referring to the House's rules referee.

Collins persisted. "I made a point of order that the gentlewoman's words are unparliamentary and her words be taken down," he said.

The proceedings were put on hold for over an hour as Collins' request was considered. After the 60-minute mark, the presiding chairman, Emanuel Cleaver, D-Mo., decided he'd had enough and chastised both sides for rushing the vote and escalating tensions.

"We don't ever, ever want to pass up, it seems, an opportunity to escalate, and that's what this is," he said.

"We want to just fight. I abandon the chair," he said before hitting his gavel and walking out.

A short time later, House Majority Leader Steny Hoyer of Maryland took the chair and announced that Pelosi's comments had been found "not in order." He then called a vote on whether the comments should be stricken from the record, and Democrats prevailed on a party-line vote, allowing Pelosi's remarks to stand after an almost two-hour delay.

Because she'd been found out of order, Pelosi was barred from making comments on the floor for the rest of the day — but Democrats voted to allow her to keep talking, again along party lines.

House Minority Leader Kevin McCarthy, R-Calif. — who'd defended the president's tweets earlier in the day — chided Democrats for having defied decades-old precedent. "The House just voted to condone this violation of decorum," he said.

The vote on the resolution proceeded after fiery remarks from Rep. John Lewis, D-Ga., who'd marched alongside the Rev. Martin Luther King Jr. "Segregationists told us to go back," he said.

"I know racism when I see it. I know racism when I feel it," Lewis said. "The world is watching. They are shocked and dismayed because it seems we have lost our way."

In a closed-door meeting with House Democrats ahead of the proceeding, Pelosi said "these are our sisters" in reference to the four newly elected Democratic lawmakers: Rashida Tlaib of Michigan, Ilhan Omar of Minnesota, Alexandria Ocasio-Cortez of New York and Ayanna Pressley of Massachusetts.

Pelosi insisted that the resolution was about more than just "The Squad" — the nickname for the four congresswoman.

"The fact is, as offended as we are — and we are offended by what he said about our sisters — he says that about people every day, and they feel as hurt as we do about somebody in our family having this offense against them," Pelosi said.

"This is, I hope, one where we will get Republican support," she said. "If they can't support condemning the words of the president, well, that's a message in and of itself."

Her California counterpart McCarthy said in a news conference Tuesday morning that he did not believe Trump's tweets were racist.

"I believe this is about ideology, this is about socialism versus freedom," McCarthy said, adding that the four congresswomen "talked more about impeachment than anything else" at a news conference Monday where they responded to the president.

"This is more from their base. It's about politics, and it's unfortunate," he said. "We should get back to the business of America."

Rep. Liz Cheney, R-Wyo., said at the news conference that she wanted to make clear the GOP's "opposition to our socialist colleagues has absolutely nothing to do with their gender, with their religion or with their race; it has to do with the content of their policies."

Trump's comments have sparked a firestorm in Washington, where Democrats and a handful of Republicans have rebuked the president and some have denounced his remarks as racist.

In his first public comments since the controversy began, Senate Majority Leader Mitch McConnell, R-Ky., told reporters Tuesday afternoon that the "political rhetoric has gotten way, way overheated all across the political spectrum," adding that "the tone of all of this is not good for the country" and that everyone needed to "lower the incendiary rhetoric."

Trump tweeted Sunday that, instead of criticizing his government, the four congresswomen should "go back and help fix the totally broken and crime infested places from which they came."

On Tuesday morning, Trump tweeted that the four congresswomen "have been spewing some of the most vile, hateful, and disgusting things ever said by a politician in the House or Senate" and asked why the House wasn't "voting to rebuke the filthy and hate laced things they have said?"

In more tweets later Tuesday morning, Trump denied that his earlier tweets were racist, saying Congress should instead be taking action on "the filthy language" by the congresswomen.

Later, at a Cabinet meeting in the White House, Trump was asked where he thought the congresswomen should go. "It's up to them," he said. "Go wherever they want, or they can stay, but they should love our country. They shouldn't hate our country."

Asked Monday whether he was concerned that his comments were being called racist, the president said, "It doesn't concern me, because many people agree with me."