Can they do that in your state? They can't in mine. Teachers aren't allowed to prescribe drugs, or even suggest students might need them. It's considered "practicing medicine without a license" or something similar.
Maybe you need to be talking to your state lawmakers.
I will note that while these were students, this didn't happen at school, or even on school property. It happened after the students were effectively "home".
School Doctors are doing it. Under most state laws, I believe while kids are in school, the Docs have medical control over the kids. I believe that is true.
I no longer have kids in school so I am not totally up on the rules/laws.