Trump even drew criticism from some of Section 230’s biggest critics on Capitol Hill, as well as activists who say the legal shield protects too broad a range of illegal or harmful activity.

“It’s frankly really embarrassing that Trump places his personal vendetta against Twitter above the safety and security of the United States of America,” said Rep. Jan Schakowsky (D-Ill.), who has called for updating Section 230. “He should be ashamed of himself.”

Gretchen Peters, executive director of the advocacy group the Alliance to Counter Crime Online, said Trump’s actions could set back bipartisan efforts to amend the law.

“There’s a lot of us who’ve been working on getting Section 230 reformed for years, and slamming something through in the end-of-the-year defense bill is going to undo a lot of the work that’s been done already,” Peters said.