(CNN) A federal judge has ruled that the FBI must un-redact more portions of former Director James Comey's memos about his meetings with President Donald Trump, in response to a lawsuit from CNN.

Much from the memos has been released publicly, but some parts remain redacted. The Justice Department previously confirmed that all of Comey's memos about conversations with Trump were part of special counsel Robert Mueller's probe.

Friday's ruling allows for the release of the names of countries and world leaders referenced in conversation between the President and Comey, as described in Comey's memo. In the conversation, the President is explaining to Comey why he has concerns about his national security adviser Michael Flynn and describing his dismay about how Flynn had handled scheduling of calls from world leaders.

The judge ruled that the FBI did not provide sufficient argument as to why revealing this detail would be harmful to national security. But he did uphold one redaction in which the President spoke disparagingly about a country.

"Given the statement and context, the Court has no trouble following the link offered by the FBI between disclosure and harm to national security," Judge James Boasberg wrote.

Read More