It has generally been up the the DEA. When it came time to schedule MDMA it was actually challenged in court by psychologists and psychiatrists along with scientists. The judge recommended a lower scheduling. The DEA said "fuck you" to the judge, petitioners, and the American people and made it schedule 1
It’s up to Congress to make the law. Congress frequently assigns some of that power to agencies, and the courts get to review whether the agencies are following any applicable laws.