The cop later said that he has a black girlfriend so it couldn’t have been racially motivated.

It probably wasn’t racially motivated, it was just “power-trippy” douche bag cop motivated. Which is equally bad.