A doctor who protested against COVID-19 vaccination on a city street, on social media and at a health conference has won the right to resume medical practice.