A woman holds up a sign in support of the Obama administration program known as Deferred Action for Childhood Arrivals, or DACA, during an immigration reform rally this month. The Trump administration could announce it is ending the program as early as Friday.

Conservative lawmakers led by Thom Tillis are crafting a bill they call the conservative Dream Act that would provide a path to permanent residency to people brought here illegally as children, offering President Donald Trump an escape hatch on one of his most vexing immigration challenges.

The legislation creates an avenue for Trump to both fulfill a campaign promise to end an Obama-era program known as DACA while yielding to what appears to be his personal desire to let these immigrants remain in the country.

“Who cares about DACA if there’s a Dream Act,” said a Republican involved with the policy negotiations and aware of Tillis’ plan.

Trump has wrestled with the politics versus the personal on this issue since Inauguration Day, recognizing that whatever he decides to do about the roughly 800,000 young immigrants known as Dreamers will anger many and shape his legacy.