Judge: District must provide security to charters