ST. PAUL, Minn. (AP) — Minnesota Attorney General Lori Swanson is joining a nationwide lawsuit seeking to protect a program for immigrants brought to the country illegally as children.

President Donald Trump ended the Deferred Action for Childhood Arrivals program earlier this year and called on Congress to replace it. Former President Barack Obama created the program in 2012 to give hundreds of thousands of immigrants permits to work.

READ MORE: Tips For Buying A Home In A Historically Tough Market

Swanson says she wants to “stop the rug from being pulled out” from under 800,000 so-called Dreamers in the program. She filed a brief Monday in the federal case surrounding Trump’s decision to rescind the program.

READ MORE: What's The Risk Of Getting COVID On A Plane?

Swanson is running in a three-way Democratic primary for governor on Aug. 14. She had been criticized by some Democrats for withdrawing from a lawsuit challenging Trump’s travel ban.

MORE NEWS: DNR: Early 'Fish Kill' On Minnesota Lakes Isn't Cause For Alarm

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)