Soldiers have been granted immunity from prosecution at the inquiry into the death of Iraqi civilian Baha Mousa.