The Department of Homeland Security has agreed to temporarily readmit a Deferred Action for Childhood Arrivals (DACA) recipient for his lawsuit claiming he was unlawfully deported, Politico reported Friday.

Juan Manuel Montes Bojorquez, 23, will be allowed to re-enter the U.S. the day before his deposition and the day before his trial in the case. Montes is claiming that he was deported despite being a participant in DACA, which prevents the deportation of undocumented immigrants who were brought to the U.S. as minors.

The judge overseeing the case requested that Montes be allowed to stay for a week before each court date. A Customs and Border Protection spokesman told Politico that the agency plans to comply with the ask.

Montes is claiming in his lawsuit that he was waiting for a ride from a friend in California when an immigration official approached him. He was unable to prove he was a DACA recipient because he didn't have his wallet on him that held the necessary documentation.

This lawsuit comes as the federal government prepares to end DACA in six months. Attorney General Jeff Sessions announced earlier this week that the program would end in March, but Congress is pushing to pass legislation on DACA before the protections expire.