A federal appeals court has ruled against the Trump administration's asylum ban, which he issued on his first day in office.