Prosecutors say the North Carolina teen helped plan and share the manifesto behind the attack.