Appeals court rules funding for Trump border wall "unlawful"