With teachers, new security, N Carolina legislature opens