Indian climate activist granted bail over farmer protests