If they have a warrant, and they believe he was inside, it is perfectly legal. Instead of trying to figure this out now, he should have thought about it before the DUI, hit and run, to the grow house, and staying there for months with a warrant out.
It sucks all the same, though.