John Swinney and Nicola Sturgeon have paid tribute to former health secretary Jeane Freeman, praising her principle and compassion.