The administration-friendly network Fox News has declared its support for CNN’s lawsuit against the Trump White House over the revocation of CNN reporter Jim Acosta’s press pass and said Wednesday that it plans to file a friend-of-the-court brief as a third party in support of its rival cable-news organization.

“Fox News supports CNN in its legal effort to regain its White House reporter’s press credential. We intend to file an amicus brief with the U.S. District Court. Secret Service passes for working White House journalists should never be weaponized. While we don’t condone the growing antagonistic tone by both the President and the press at recent media avails, we do support a free press, access and open exchanges for the American people,” the network’s president, Jay Wallace, said Wednesday, according to a Fox News statement.

CNN filed the lawsuit Tuesday morning in district court in Washington, D.C. The suit seeks an immediate restraining order that requires the press pass to be returned to Acosta and cites a violation of the correspondent’s First Amendment rights, as well as the Fifth Amendment right to due process.

Read:Trump threatens more reporters’ credentials as he slams ‘stupid’ questioning

During a press conference on Nov. 7, Acosta asked several questions during a White House press conference that drew the president's ire. At one point, a female White House staffer tried to take the microphone away from Acosta, who refused to give it up, saying, “Pardon me, ma’am,” before trying to ask President Trump another question.

Later that day, White House press secretary Sarah Sanders said in a statement that the White House would be suspending Acosta’s “hard pass,” which gives journalists broad, on-demand access to the White House grounds, accusing him of “placing his hands” on a young woman just trying to do her job as a White House intern.”

Sanders also tweeted an altered video of the press conference that appeared to exaggerate the speed of Acosta’s arm movements, making them appear more aggressive than they, in reality, were. The edited video was first shared by Paul Joseph Watson, a contributor to the conspiracy-theory-promoting website Infowars.

Related:Video of Acosta incident posted by White House press secretary Sarah Sanders contains extra frames

Also:Kellyanne Conway: Jim Acosta’s ‘karate chop’ clip wasn’t altered, but it was ‘sped up’

On Monday, AT&T Inc. T, +0.23% CEO Randall Stephenson accused the Trump administration of ignoring established procedures in a way that appeared to violate press-freedom protections. CNN is a subsidiary of AT&T.

“If the White House wants to pull someone’s press credentials, there is a process,” Stephenson said at the Wall Street Journal’s WSJ Tech D.Live conference. “That process must be followed, otherwise what is the criteria for pulling somebody’s press credentials?”

The White House Correspondents’ Association also threw its support behind CNN. “The President of the United States should not be in the business of arbitrarily picking the men and women who cover him,” said the association’s president, Olivier Knox, in a statement: