Qaim Ali Shah gets bail in illegal appointment case