A US judge has rejected a request by President Donald Trump to stop the publication of a memoir by his former National Security Adviser, John Bolton.

The justice department argued that the book had not been properly vetted.

Washington DC District Court Judge Royce Lamberth said the government had "failed to establish that an injunction would prevent irreparable harm", the BBC reported.

Bolton had "gambled" with US national security and already "exposed his country to harm", the judge said.

Bolton's book to go on sale

John Bolton's FIVE Flaky Allegations Against Trump

Hundreds of thousands of copies of the book - The Room Where It Happened - have been printed and distributed, and are due to go on sale on Tuesday.

In the memoir, Bolton paints an unflattering picture of a president whose decision-making was dominated by a desire to be re-elected in November.

Trump has said the book is "made up of lies and fake stories".

The justice department's lawyers argued that Bolton had breached an obligation to complete a pre-publication review of his manuscript to ensure that it contained no classified information.

Bolton's lawyers dismissed the claim. They insisted that the manuscript was thoroughly examined and that Mr Trump simply did not like the contents.

In his 10-page ruling, Judge Lamberth wrote that Mr Bolton had opted out of the pre-publication review process before its conclusion and that he "likely jeopardized national security by disclosing classified information in violation of his non-disclosure agreement obligations".

He nevertheless denied the government's injunction request.

Bolton's big win

Donald Trump
Reuters

"In taking it upon himself to publish his book without securing final approval from national intelligence authorities, Bolton may indeed have caused the country irreparable harm," he wrote.

"But in the internet age, even a handful of copies in circulation could irrevocably destroy confidentiality. A single dedicated individual with a book in hand could publish its contents far and wide from his local coffee shop. With hundreds of thousands of copies around the globe - many in newsrooms - the damage is done. There is no restoring the status quo."

Shortly after the decision, Trump alleged on Twitter that Bolton "broke the law by releasing Classified Information (in massive amounts)".

"He must pay a very big price for this, as others have before him. This should never to happen again!!!" the president added.

Later, the president called the ruling a "BIG COURT WIN against Bolton".

A lawyer for Bolton, Charles Cooper, welcomed the judge's decision to deny the injunction request.

However, he took issue with the conclusion that his client did not comply fully with his contractual pre-publication obligation to the government.

"The full story of these events has yet to be told - but it will be," he added.

Bolton's publisher, Simon & Schuster, said: "We are grateful that the Court has vindicated the strong First Amendment protections against censorship and prior restraint of publication."

(With IANS inputs)