A Scots ecologist battling to keep a badger he rescued in the wild has found her a forever home - saving her from being put down.