The decision was made on Thursday.
The judge stated that the US government retaliated against Michael Cohen who is planning to release a book critical of President Donald Trump before the upcoming November US election.
Michael Cohen was ordered back to prison on July 9 after probation authorities said he refused to sign a form banning the former personal lawyer from publishing the book or communicating publicly in other manners.
That decision was viewed as a violation of Michael’s First Amendment rights.
The information was shared by US District Judge Alvin K. Hellerstein during a telephone conference.
Michael Cohen will be released from prison and to home confinement by Friday at 2:00pm local time.
“How can I take any other inference than that it’s retaliatory?” Hellerstein asked prosecutors, who insisted in court papers and again Thursday that Probation Department officers did not know about the book when they wrote a provision of home confinement that severely restricted Cohen's public communications.
“I’ve never seen such a clause in 21 years of being a judge and sentencing people and looking at terms of supervised release,” the judge said.