NBC: Man charged in apparent Trump plot wrote 'This was an assassination attempt,' court filing shows