A contractor, who federal prosecutors say stole classified information from government agencies, including the National Security Agency, pleaded guilty on Thursday.