A Delhi court on Friday granted bail to Aam Aadmi Party (AAP) legislator Amanatullah Khan and others, following their arrest by the Delhi Police for allegedly obstructing officials of the South Delhi Municipal Corporation (SDMC) from carrying out an anti-encroachment drive at Madanpur Khadar in the national capital.