N.Y. school district apologizes for teacher's Nazi Germany assignment