Video footage of the arrests attracted millions of views online. Judge says force used by the officers was justified.