WASHINGTON (AP) — The House has passed a $36.5 billion measure that would replenish government disaster aid funds and help the cash-strapped government of Puerto Rico keep functioning in the devastating aftermath of Hurricane Maria.

The bipartisan 353-69 vote sent the measure to the Senate, which plans to take up the bill next week.

The bill combines $18.7 billion for Federal Emergency Management Agency disaster relief with $16 billion to permit the financially troubled federal flood insurance program pay an influx of Harvey-related claims. An additional $577 million would pay for western firefighting efforts.

Almost $5 billion of the funding could be used to help the government of Puerto Rico and its local jurisdictions stay functional as they endure unsustainable cash shortfalls in the aftermath of Maria.