Republicans prepare bill allowing migrant children to be detained more than 20 days originally appeared on abcnews.go.com

Republican lawmakers are preparing to vote on a more narrow immigration bill that would allow immigrant children to stay in detention facilities with their parents for more than 20 days, senior White House and Hill officials tell ABC News.

The bill would eliminate the so-called Flores settlement that requires that children be released from detention after 20 days, fixing a flaw in President Trump's executive order that mandates that children and parents not be separated during detention.

PHOTO: Tent shelters, at right, used to house separated family members are seen at the Port of Entry, June 21, 2018, in Fabens, Texas. (Matt York/AP, FILE) More

The House is scheduled to vote on a larger "compromise" immigration bill early next week that would include DACA, border security and visas. But the bill is not expected to get enough votes to pass in Congress. Sources tell ABC News that Hill leaders are expected to then vote on the more narrow bill.

(MORE: Trump says Obama kept migrants 'wrapped in foil' in cages: 'We do a much better job')

(MORE: Confusion continues as immigrant children remain separated from parents)

(MORE: Chaos on the border inflames GOP's split with Latinos)

The Trump administration filed a motion in a California federal court on Thursday to amend the Flores settlement so that children can remain in detention with their parents as they await immigration proceedings. The status of that case is in limbo.

PHOTO: A group of immigrants from Honduras and Guatemala seeking asylum stand in line at the bus station after they were processed and released by U.S. Customs and Border Protection, June 21, 2018, in McAllen, Texas. (Eric Gay/AP, FILE) More

Two White House officials told ABC News that the president would be inclined to sign an immigration bill even if it only fixes the issue of the detention period for children.

"We've always said there needs to be a legislative fix," White House director of legislative affairs Marc Short told ABC News.

"I don't think we're going to talk about hypotheticals until we see that the Democrats won't partner with us to solve a bigger problem."

If there isn't legislative or judicial action to change the period of detention for children, the families could be separated again if the children are released from the detention centers and the parents remain until they are processed.

PHOTO: Senators John Cornyn, R-Texas, right, and Ted Cruz, R-Texas take part in a roundtable discussion, June 22, 2018, in Weslaco, Texas, after touring immigrant detention facilities for children in South Texas. (David J. Phillip/AP, FILE) More

Amid confusion over how to implement the executive order that was crafted within a matter of hours on Wednesday, the administration designated Homeland Security adviser Doug Fears on Thursday to coordinate the inter-agency response, ABC News has learned.

Senior White House aide Stephen Miller has been blamed by his colleagues for pushing the zero tolerance policy that created the crisis at the border, according to White House officials.