The House on Tuesday rejected an attempt by Democrats to formally condemn Rep. Paul Gosar, R-Ariz., for asking Capitol Police arrest illegal immigrants at the State of the Union address.

Gosar drew Democratic outrage when he said police should be on the watch for illegal immigrants who were the guests of many Democrats during Trump's speech last week.

"Of all the places where the Rule of Law needs to be enforced, it should be in the hallowed halls of Congress," Gosar said on Twitter ahead of Trump's address. "Any illegal aliens attempting to go through security, under any pretext of invitation or otherwise, should be arrested and deported."

On Tuesday, Congressional Hispanic Caucus Chairwoman Michelle Lujan Grisham, D-N.M., introduced a resolution saying Gosar was targeting Democratic guests who have benefitted from the Deferred Action for Childhood Arrivals program, and said he "inappropriately" pressured police to arrest them.

"Representative Gosar abused his power in an attempt to interfere with and politicize the U.S. Capitol Police's efforts to provide for a safe, secure, and open environment during the State of the Union," the resolution said.

The resolution also said the House "strongly condemns" his actions.

However, Republicans made a motion to table, or set aside, the resolution, and the House voted in favor of that motion in a party-line 231-187 vote.