You're likely thinking of Daft Punk's "Da Funk" (1997)—directed by Spike Jonze. It features a man in a dog costume (not cops) navigating NYC with a boombox. The "bromance" vibe comes from his tender interactions with strangers.
If it's specifically two police officers dancing/bonding, candidates include:
"We're All in This Together" is from High School Musical, not Daft Punk. No major house video matches "two cops having a bromance" exactly—check Da Funk or describe more details (year, lyrics, visual style).