SAN FRANCISCO — What a difference a chief justice makes.

When the American Nurses Association obtained a 2010 decision that barred unlicensed school personnel from giving insulin injections to schoolchildren, it was Tani Cantil-Sakauye — then a justice on the Third District Court of Appeal — writing the decision in their favor.