Congress has approved aid for the city of Flint, Michigan, which has been grappling with a water contamination crisis since late 2014.

Michigan lawmakers have been working for nearly a year to secure funds to replace water pipes that poisoned the city’s water with lead.

Just before 1 a.m. Saturday morning, the Senate passed a water infrastructure bill that authorized funding for Flint, and earlier in the night, approved the funds in a stopgap spending bill.

[ Senate Averts Shutdown With Little Time to Spare ]

At 1:15 a.m., Michigan Democratic Sens. Debbie Stabenow and Gary Peters phoned the Michigan doctor who first revealed the elevated blood lead levels in children in Flint to tell her that federal aid was finally coming.