Eight Scottish care homes are celebrating after winning a prestigious national award.