The Senate on Thursday approved a resolution asserting that the press is "not the enemy of the people," as President Trump has claimed, and condemning Trump's ongoing attacks against reporters.

The Senate quickly considered the resolution from Sens. Brian Schatz, D-Hawaii, and Chuck Schumer, D-N.Y., and passed it unanimously in a voice vote.

The resolution doesn't specifically mention Trump, but a statement from Schatz's office said the resolution was offered in the wake of Trump's effort to "attack journalists and news organizations."

[Opinion: The press is not the enemy of the people, but it sometimes acts like it]

The resolution noted the importance of freedom of the press from the founding of the United States, as well as efforts by "tyrannical and authoritarian governments" to "undermine, censor, suppress, and control the press to advance their undemocratic goals."

"The Senate ... affirms that the press is not the enemy of the people," it read. It said the Senate "reaffirms the vital and indispensable role the free press serves to inform the electorate, uncover the truth, act as a check on the inherent power of the government, further national discourse and debate, and otherwise advance our most basic and cherished democratic norms and freedoms."

It concluded by saying the Senate "condemns attacks on the institution of the free press and views efforts to systematically undermine the credibility of the press as a whole as an attack on our democratic institutions."