NEW DELHI — The Bollywood star Salman Khan was granted bail on Saturday while he appealed a conviction for killing two rare antelopes, which came with a five-year jail sentence. It’s a further twist in a case that has gone on for almost two decades.

Mr. Khan was convicted and sentenced by a court in the city of Jodhpur, in Rajasthan State, on Thursday, and spent the next two nights in jail.

The decision to grant him bail, which was set at some $1,500, followed the planned transfer of 87 judges, including at least one who heard the bail application, by the Rajasthan High Court late Friday evening for unspecified administrative reasons.

Mr. Khan’s lawyers have requested that the court in Jodhpur also suspend his sentence. The next hearing is scheduled for May 7.