Canada defends refugee pact with United States in appeal hearing