What health officers said is that 1st amendment rights supersede health orders. Perhaps you could link to a health officer or health order saying otherwise?
What did public health officials say about those who protested lockdowns?
I don't recall health officers specifically saying this. But it was public policy in NYC to explicitly not trace infections spread through the George Floyd protests: