Scotland’s health secretary was central to an intervention in delaying the release of Covid-19 death rates in individual care homes, it can be revealed.