A Mexican man arrested by immigration agents in Colorado last week has been temporarily freed after U.S. Democratic Sen. Michael Bennet intervened.

Arturo Hernandez was released Tuesday after being granted a 30-day deportation delay. His lawyers plan to appeal his case to try to keep him in the United States permanently.

RELATED: Man who took sanctuary in Denver church for 9 months held by ICE

Hernandez spent nine months living in the basement of Denver's First Unitarian Church starting in 2014 after immigration authorities tried to send him back to Mexico. He left after they assured him he would no longer be a priority for deportation.

He was detained last week as he went to his job. Bennet filed a bill to help Hernandez and said he asked U.S. Immigration and Customs Enforcement for more time to process his case.