Trump donor Louis DeJoy was sued by Montana Gov. Steve Bullock due to delays in mail and potential impacts on mail-in voting. DeJoy agreed to roll back all service changes nationwide.

The US Postal Service agreed Wednesday to reverse changes that slowed mail service nationwide, settling a lawsuit filed by Montana Gov. Steve Bullock during a pandemic that is expected to force many more people to vote by mail.

The lawsuit, filed against Postmaster General Louis DeJoy and the US Postal Service on Sept. 9, argued changes implemented in June harmed access to mail services in Montana, resulting in delayed delivery of medical prescriptions, payments, and job applications, and impeding the ability of Montana residents to vote by mail.

The postal service agreed to reverse all changes, which included reduced retail hours, removal of collection boxes and mail sorting machines, closure or consolidation of mail processing facilities, restriction of late or extra trips for timely mail delivery, and banning or restricting overtime.

The agreement also requires the Postal Service to prioritize election mail.

Sorting Fact From Fiction: Sign Up for COURIER’s newsletter.

The settlement agreement was reached a day ahead of a hearing in the US District Court in Great Falls. It applies to all states.

“Montanans never gave up this fight and as a result, we are ensuring stability through and beyond the election by immediately restoring the mail services folks rely on, whether it’s receiving vital medication or ensuring they can pay their bills on time,” Bullock said in a statement.

A spokesperson for the US Postal Service did not immediately respond to an email seeking comment.

Many more voters are expected to vote by mail this November to limit the spread of the COVID-19 pandemic. The majority of Montana counties are holding elections by mail, after a directive by Bullock permitted them to do so to limit the spread of the coronavirus. Bullock is running for a seat in the Senate.

RELATED: Retired Mail Carrier: Changes at the Postal Service Could Be Devastating for Its 669,000 Employees

The agreement comes after a federal judge temporarily blocked the controversial Postal Service changes on Sept. 17, calling the changes “a politically motivated attack on the efficiency of the Postal Service” before the November election.

Judge Stanley Bastian in Yakima, Washington, issued the nationwide preliminary injunction sought by 14 states that brought forward a separate suit against the Trump administration and the US Postal Service. The 14 states, led by Democratic attorneys general, expressed concern that delays might result in voters not receiving ballots or registration forms in time.

Following a national uproar last month, DeJoy, a major donor to President Donald Trump and the GOP, announced he was suspending some of the changes, including the removal of mail collection boxes, but other changes remained in place.