The US House of Representatives passed a sweeping bill to speed new drugs to the market after lawmakers defeated last-minute amendments that threatened to derail it.

The House voted 344 to 77 in favor of the 21st Century Cures Act, which would require the FDA to streamline its drug approval process, consider more flexible forms of clinical trials and incorporate patient experience into its decision-making process.

The bill would overhaul the FDA’s regulatory framework for approving drugs. It would create incentives for companies to develop drugs for rare diseases. It would allow certain antibiotics to be approved based more limited testing and establish other measures to shorten the drug development time.