An opponent of vaccines who urged violence against scientists, politicians and public health officials during the COVID-19 pandemic was sentenced Monday.