The main purpose of this legislation, known as the "End Price Gouging for Medications Act," is to control the prices of prescription drugs for federal health programs. It aims to establish a system of reference prices, which are set limits on how much drug manufacturers can charge for their medications. This is intended to make prescription drugs more affordable for people who rely on federal health programs. Key provisions of the legislation require the Secretary of Health and Human Services to set annual reference prices for each prescription drug.