A New York judge says prosecutors investigating President Donald Trump's former personal lawyer's business dealings can have most raid materials later this week.

Judge Kimba Wood on Tuesday said lawyers for attorney Michael Cohen, Trump and the Trump Organization can make final designations on items subject to attorney-client privilege by Wednesday night.

Anything not designated subject to privilege or highly personal can be turned over to prosecutors after that.

Wood did carve out an exception for 22,000 documents, giving the Trump Organization until July 5 to make its designations on those.

Her order came a day after lawyers for Cohen said they'd finished their analysis after designating 12,000 files as being subject to privilege out of over 4 million electronic and paper files reviewed since April 9 raids on Cohen.

Less than two weeks ago, President Trump claimed that Cohen was no longer his lawyer.

Asked by a reporter if Cohen is still the president's lawyer, Trump responded, "No, he's not my lawyer — anymore."

It's unclear when exactly Cohen stopped being the president's lawyer. 

When a reporter asked Trump if he's worried Cohen might flip on him, he answered, "Look, I did nothing wrong."

Over the years, Cohen, who has acted as Trump's personal attorney and fixer, has been one of Trump's most loyal supporters. He routinely handled the jobs most would not do for the Trump Organization and for Trump himself. The attorney for adult film star Stormy Daniels has accused Cohen of paying her hush money in 2016 to cover up a relationship with Trump. 

Cohen has also been a key figure in some of the Trump Organization business deals including one that would have led to a Trump Tower in Moscow. But since 2016, Cohen's activities have been under scrutiny by the FBI. He was prominently mentioned in the unsubstantiated dossier compiled by a former British spy which alleged coordination between the Trump campaign and Russian operatives. Cohen has dismissed the allegations in the dossier and he has repeatedly maintained that he has done nothing illegal.

(The Associated Press, CBS News contributed to this report.)