Officer accused of yelling racial slurs rehired