The US Department of Justice says it will appeal criminal charges against former FBI Director James Comey.