To menn dømt til samfunnsstraff for vold mot politiet