This is the first time Congress has approved a broad disaster relief package since February 2018. The measure passed Monday will address disasters in the year since: hurricanes in Florida, Georgia, Alabama and the Carolinas, wildfires in California, and floods in the Midwest.

Across both chambers, there was widespread relief that the House had finally passed the measure, capping off one of the most laborious approval processes for emergency relief in recent memory. The package, which was left off legislation that ended the country’s longest shutdown earlier this year, was stymied for months as lawmakers squabbled over how much money to allocate to Puerto Rico’s hurricane recovery over the president’s opposition. Democrats in both chambers were adamant that the commonwealth, which does not have voting representation in Congress, needed more money.

“Those who have endured devastating natural disasters deserve to know that the federal government will not leave them to meet these challenges alone,” said Representative Steny H. Hoyer of Maryland, the majority leader.

The administration’s request for supplemental aid at the border, which included $3.3 billion to feed and care for migrants in custody and staff processing centers, further complicated negotiations. While Republicans pushed for that aid to be included, it was ultimately left out and is likely to be taken up separately or added to another spending bill.

“The appropriated resources will begin to provide necessary aid and relief to the millions of Americans around the country struggling from the devastation caused by natural disasters,” said Representative Kevin McCarthy of California, the minority leader. “However, it’s unfortunate that Democrats dragged their feet for so long and yet still refuse to address the humanitarian and national security crisis taking place along our southern border.”

