Washington (CNN) The future of the Deferred Action for Childhood Arrivals program got murkier Tuesday when the Texas attorney general made good on a threat to challenge it in court.

The lawsuit throws a wrench in an already-complicated legal morass for the DACA program, which protects young undocumented immigrants who came to the US as children and which President Donald Trump has been blocked from ending, for the time being, by other federal courts.

The lawsuit has the potential to create a headache for the Justice Department and courts as it could potentially conflict with rulings from judges in three separate judicial regions of the country who have blocked the end of DACA and could force the government to take an awkward position in the case.

It may also potentially seal the issue's path to the Supreme Court.

Texas Attorney General Ken Paxton and six other states on Tuesday filed a lawsuit challenging the lawfulness of DACA, arguing that former President Barack Obama's initial creation of DACA in 2012 violated the Constitution and federal law.

Read More