U.S. Department of Justice preparing legal brief as both sides appeal Line 5 decision