Congress secured health benefits for coal miners on Sunday, reports Reuters.

The provision to secure the United Mine Workers’ healthcare benefits was included in a deal that lawmakers reached late on Sunday for around $1 trillion in federal funding that would avert a government shutdown later this week.

Around 22,600 coal miners and their families were on the brink of losing on April 30 their healthcare benefits, which were at risk of default as the industry struggled, with companies trying to recover from bankruptcies.