The Kerala High Court on Monday granted bail to nine CPI(M) workers booked for attack on Enforcement Directorate (ED) officials who were returning after a search operation conducted at the residence of the former Kerala Chief Minister Pinarayi Vijayan.