The New York Supreme Court, Appellate Division, Second Department upheld a Supreme Court justice's temporary restraining order against President Donald Trump's niece Mary Trump over publication of her upcoming book, but vacated the order issued against publisher Simon & Schuster.

The president's brother Robert Trump sued their niece June 26, seeking to block the planned July 28 publication of "Too Much and Never Enough: How My Family Created the World's Most Dangerous Man."

Presiding Justice Alan Scheinkman in a ruling issued late Wednesday modified the TRO against Mary Trump to include "any agent" of hers. While Robert Trump has alleged Simon & Schuster is Mary Trump's agent, Scheinkman found there was insufficient evidence to determine whether Robert Trump will be successful in that argument, and lifted the block for the publisher.

Scheinkman noted full submissions from Mary Trump and Simon & Schuster have not yet been received and his ruling does not represent a judgment on Robert Trump's request for a preliminary injunction. Written arguments from both sides are due to Dutchess County Supreme Court Justice Hal Greenwald within the next week.

Mary Trump's attorney, Gibson, Dunn & Crutcher partner Theodore Boutrous, said he planned to file a brief in the lower court Thursday. The brief was not filed by midday Thursday.

"It is very good news that the prior restraint against Simon & Schuster has been vacated and we look forward to filing our brief tomorrow in the trial court explaining why the same result is required as to Ms. Trump, based on the First Amendment and basic contract law," he said.

Robert Trump's attorney, Charles Harder, has argued that Mary Trump signed a confidentiality provision of the settlement agreement associated with her grandfather's will, which prohibits her from publishing information about her relationship with the president, Robert Trump or their sister, former Judge Maryanne Trump Barry of the U.S. Court of Appeals for the Third Circuit, without their consent. Simon & Schuster's attorneys have noted the publisher is not a party to the settlement agreement.

While Robert Trump has not reviewed the contents of the book, Harder argued it presumably contains material protected by the settlement agreement.

Scheinkman agreed that, based on the book's title and Mary Trump's public comments, it may contain material within reach of the settlement agreement.

"While Ms. Trump unquestionably possesses the same First Amendment expressive rights belonging to all Americans, she also possesses the right to enter into contracts, including the right to contract away her First Amendment rights," Scheinkman wrote.

Scheinkman found that, while anyone can enter into a confidentiality agreement, courts are "not necessarily obligated" to enforce such agreements. Courts must balance the interests of the party seeking to enforce the contract with "other legitimate interests, including, especially in this context, the public interest," he wrote.

"Drawing the appropriate balance may well require in camera review of the book sought to be enjoined. … [T]he legitimate interest in preserving family secrets may be one thing for the family of a real estate developer, no matter how successful; it is another matter for the family of the president of the United States," Scheinkman wrote.

In terms of the balancing act, First Amendment attorney Jeffrey Robbins, a partner at Saul Ewing Arnstein & Lehr, said the public-interest side must be weighed heavily, but there may also be ways to invalidate the confidentiality agreement without reaching the First Amendment issue.

The agreement could be invalidated because it had no expiration date and 19 years have passed, Robbins said, or it could be upheld as it pertains to the president's siblings but invalidated as to the president because of his public office.

Robbins said Simon & Schuster may act quickly to distribute copies of the book to book reviewers and render the issue moot. As of June 30, Simon & Schuster had approximately 75,000 copies printed and bound and ready for publication, thousands of which had already been shipped, according to court filings.

"If Simon & Schuster publishes, there is no longer any live injunction issue, even against Mary Trump," he said.

Robert Trump could try to persuade the court that Simon & Schuster is Mary Trump's agent, Robbins said, or he could appeal Scheinkman's order. Simon & Schuster would want to try to distribute the books to reviewers or customers before he could pursue either of those options, Robbins said.

"If I were advising Simon & Schuster, I would advise them to act without coordinating or doing anything which looked like they were coordinating with Mary Trump," Robbins said, as long as Mary Trump is still under the TRO.

The president wants to avoid pursuing his own lawsuit against his niece, Robbins said, both to avoid discovery and because he has argued that, as president, he can't be subject to certain kinds of litigation in other ongoing cases.

"These lawsuits can be boomerangs, significant boomerangs," Robbins said. "They can open plaintiffs up to discovery of a sort that is very unwelcome."

Simon & Schuster, which is represented by Elizabeth McNamara of Davis Wright Tremaine, praised Scheinkman's ruling in a statement.

"We are gratified with the Appellate Court's decision to overturn the Temporary Restraining Order issued by the lower court against Simon & Schuster," the statement said. "We support Mary L. Trump's right to tell her story in TOO MUCH AND NEVER ENOUGH, a work of great interest and importance to the national discourse that fully deserves to be published for the benefit of the American public. As all know, there are well-established precedents against prior restraint and pre-publication injunctions, and we remain confident that the preliminary injunction will be denied."

READ MORE: