Mother who took son to Sierra Leone because she thought he was at risk of joining London gang wins court fight