NBC: Trump tells judge he will appeal gag order in federal election interference case