WASHINGTON — A former Senate staffer accused of lying to the FBI about his contacts with reporters will ask a federal court to bar President Donald Trump from making "improper and prejudicial" comments about the case, his attorney said Wednesday.

The legal maneuver was announced as James Wolfe, the longtime director of security for the Senate Intelligence Committee, pleaded not guilty to making false statements to investigators looking into leaks of sensitive information.

After the brief appearance in federal court in Washington, Wolfe attorney Preston Burton told reporters he planned to file a motion to restrict the president's comments because he was concerned about "glib remarks by the president" that could taint the jury pool and jeopardize Wolfe's right to a fair trial.

That apparently was a reference to Trump's remarks earlier this week that Wolfe's was "a very important leaker" and his arrest could be a "terrific thing."

"I believe strongly in freedom of the press. I'm a big, big believer in freedom of the press," Trump added. "But I'm also a believer in classified information. It has to remain classified."

But as defense attorney Benjamin Klubes said outside court, "there is absolutely no allegation in this case that Mr. Wolfe leaked classified information."

As part of its investigation of Wolfe, the Justice Department seized email and phone records of a New York Times reporter, Ali Watkins, who had a three-year romantic relationship with Wolfe that ended last year.

The newspaper reported Wednesday that it is now reviewing Watkins' work history, "including the nature of her relationship with Mr. Wolfe, and what she disclosed about it to her prior employers."

Watkins — who previously worked for the McClatchy Company, the Huffington Post, BuzzFeed, and Politico — told The Times that Wolfe did not leak to her while they were personally involved.

Media advocates have criticized the Justice Department for going after Watkins' personal communications.

Wolfe, who was placed on leave in December and recently retired from his Senate job, will remain free until his next court date on June 19.

Charlie Gile reported from Washington and Tracy Connor reported from New York