A panel on the U.S. Court of Appeals for the Ninth Circuit upheld an injunction against a Trump administration rule restricting asylum for certain migrants, finding authorities ignored a “mountain of evidence” on the potential dangers those migrants can face.

All three judges on the panel for Monday’s ruling agreed the policy was not “consistent with” immigration law and that officials were “arbitrary and capricious” in enacting the rule last year. Judge Eric Miller, appointed to the bench by President Donald Trump last year, wrote separately to express concerns about officials not considering a significant amount of evidence on the dangers posed to asylum seekers in other countries.