Tanzania MPs approve law granting president immunity