Appeal court quashes UK policy of removing migrants with little warning