(CNN) A New York federal judge granted a one-day stay until Thursday in a dispute over a subpoena from the Manhattan district attorney's office for President Donald Trump's tax returns.

US District Court Judge Victor Marrero also set a deadline for Monday for the Manhattan US Attorney's office to determine whether it wants to participate in the case, and said if it chooses to do so it must file a brief with the court by October 2.

"Go home. Sober up. Decompress," Marrero told both sides after a 90-minute hearing. He advised them to "get together again and see whether some way could be found to accommodate the concerns expressed by both sides."

Wednesday's decision further delays broader constitutional questions at the heart of the dispute over the subpoenas, including whether the President can be criminally investigated.

Read More