Kerala HC grants bail