Canada-U.S. refugee agreement to be challenged in court