Scottish government ditches downgrades for thousands of pupils