The U.S. Justice Department was dealt two new setbacks Wednesday in its attempt to replace the government’s legal teams in the litigation confronting the Trump administration’s quest to put a citizenship question on the 2020 U.S. census.

A Maryland judge rejected the government’s move to install a new team of lawyers there, while a California judge said the new attorneys’ notice of appearance was insufficient. The developments come a day after a New York federal judge called the Justice Department’s motion to withdraw counsel “patently deficient.”