Scotland’s health secretary has declined to offer his backing to a nurse facing the sack after “misgendering” a trans doctor.