NEW YORK/WASHINGTON (Reuters) - U.S. President Donald Trump violated the Constitution by blocking people whose views he disliked from his Twitter account, a federal appeals court ruled on Tuesday.

U.S. President Donald Trump talks with attendees as he departs an event held to tout his administration's environmental policies in the East Room of the White House in Washington, U.S., July 8, 2019. REUTERS/Carlos Barria

In a 3-0 decision, the 2nd U.S. Circuit Court of Appeals in Manhattan said the First Amendment forbids Trump from using Twitter’s “blocking” function to limit access to his account, which has 61.8 million followers.

“The First Amendment does not permit a public official who utilizes a social media account for all manner of official purposes to exclude persons from an otherwise-open online dialogue because they expressed views with which the official disagrees,” wrote Circuit Judge Barrington Parker, citing several Supreme Court decisions.

Kelly Laco, a spokeswoman for the U.S. Department of Justice, which argued the appeal, said: “We are disappointed with the court’s decision and are exploring possible next steps.”

The White House declined to comment. White House social media director Dan Scavino was also a defendant. Twitter TWTR.N declined to comment.

Trump has made his @RealDonaldTrump account, which he opened in 2009, a central and controversial part of his presidency, using it to promote his agenda and to attack critics.

His blocking of critics was challenged by the Knight First Amendment Institute at Columbia University, as well as seven Twitter users he had blocked.

“The decision will help ensure the integrity and vitality of digital spaces that are increasingly important to our democracy,” said Jameel Jaffer, Knight’s executive director.

Tuesday’s decision upheld a May 2018 ruling by U.S. District Judge Naomi Reice Buchwald in Manhattan, which prompted Trump to unblock some accounts.

The Justice Department had called her ruling “fundamentally misconceived,” saying Trump used Twitter to express his views, not to offer a public forum for discussion.

Parker, however, said Trump’s account bears “all the trappings of an official, state-run account” and is “one of the White House’s main vehicles for conducting official business.”

He said Trump and his aides have characterized the president’s tweets as official statements, and that even the National Archives considers them official records.

Parker also found it ironic that Trump censored speech at a time the conduct of the U.S. government and its officials is subject to intense, passionate and wide-open debate.

“This debate, as uncomfortable and as unpleasant as it frequently may be, is nonetheless a good thing,” he wrote. “We remind the litigants and the public that if the First Amendment means anything, it means that the best response to disfavored speech on matters of public concern is more speech, not less.”

The case is Knight First Amendment Institute at Columbia University et al v Trump et al, 2nd U.S. Circuit Court of Appeals, No. 18-1691.