The United States Senate has passed a $19 billion disaster aid bill to help a number of states and Puerto Rico recover after a series of hurricanes, floods and wildfires.

The legislation passed with an 85-8 vote.

Republican leaders agreed to a demand by Democrats to toss out President Donald Trump’s $4.5 billion request to address a record influx of Central American migrants who are fleeing violence in Guatemala, Honduras and elsewhere and coming to the United States.

The disaster relief bill was sought by Trump’s GOP allies in states such as Georgia, Florida, Iowa and Nebraska. But the bill was held up for months, first by a battle over aid for Puerto Rico and then by failed negotiations on border aid.

Trump says he will sign the measure.

READ MORE: Legislative Bills Moving Faster