University forced to apologize after professor uses 'N-word' repeatedly in class