A federal appeals court decided Thursday that immigrants who cross the border without authorization may go to court to appeal a decision by U.S. immigration authorities to deny them asylum.

The decision, by a three-judge panel of the U.S. 9th Circuit Court of Appeals, could keep immigrants in the country for years while they challenge the government’s denial of asylum.