Criminals can treat car accidents/ramming as a threat to their lives and are able to defend themselves.
Normally, if a cop passes by, without getting too close, there won't be any misunderstanding and both parties will continue with their business; and, as you said yourself, car crash took place, so their attack was justified. Unless you can prove it was them who rammed into you...