Medicare will cover some GLP-1 medications under a new pilot program that will run through the end of 2027.