The Senate passed a four-month extension to the National Flood Insurance Program Tuesday, less than a day before the program was set to expire.

The bill, which had originated in the House, went to President Donald Trump, who had until midnight to sign it to avoid a lapse in the program.

Twelve Republican senators opposed the extension.

The House passed the extension last week, declining to take up a separate bill to both extend and institute reforms to the program, including improving flood mapping and loss mitigation efforts.

This marks the seventh time Congress has had to reauthorize the program—which is $20 billion in debt—since September 2017. Lawmakers and industry groups alike agree that the program needs vital reforms, but many believe a short-term reauthorization is better than having the program lapse in the absence of reforms.

Read more in American Banker.