From a Shariah perspective, if a government official is creating an obstacle in granting us our legitimate right, then there is no harm in giving a bribe to him. However, if the right being demanded from him is not our right according to Shariah, then it is not permissible to obtain it by offering a bribe. (Book: Karobari Masail Aur Unka Shar'i Hal / Pg: 116)