WASHINGTON — Republicans on Capitol Hill frantically searched on Tuesday for ways to end the Trump administration’s policy of separating families after illegal border crossings, with the focus shifting on a new plan to keep children in detention longer than now permitted — but with their parents.

House GOP leaders are revising their legislation amid a public outcry over President Donald Trump’s “zero tolerance” approach to illegal crossings. The change would loosen rules that now limit the amount of time minors can be held to 20 days, according to a GOP source familiar with the measure. Instead, the children could be detained with their parents for extended periods.

The revised bill would also give Department of Homeland Security the authority to use $7 billion in border technology funding to pay for family detention centers, the person said. Expanded facilities could be key, as migrant children separated from their parents are currently housed by a different department, Health and Human Services.

The person providing the information on the proposal was not authorized to do so by name and commented only on condition of anonymity.

In the Senate, meanwhile, Republicans are rallying behind narrow legislation that would allow detained families to stay together while expediting their deportation proceedings.

Lucy Martin and her daughter Branwen Espinal together with other mothers and their babies, attend a House Committee on the Judiciary and House Committee on Oversight and Government Reform hearing to express their support and sympathy to immigrants and their families and objection to the forced separation of migrant children from their parents, on Capitol Hill in Washington, Tuesday, June 19, 2018. (AP Photo/Manuel Balce Ceneta)

Lucy Martin and her daughter Branwen Espinal, together with other mothers and their babies, are removed from the hearing floor after babies started crying during a House Committee on the Judiciary and House Committee on Oversight and Government Reform hearing on Capitol Hill in Washington, Tuesday, June 19, 2018. The mothers were protesting the forced separation of migrant children from their parents. Martin is married to a Honduran. (AP Photo/Manuel Balce Ceneta)

Sound

The gallery will resume inseconds

Hilla Holappa, 1, reaches up to her mother Erika Holappa, of Washington, during a protest of the separation of immigrant families, at the start of at joint House Committee on the Judiciary and House Committee on Oversight and Government Reform hearing examining the Inspector Generals’ report of the FBI’s Clinton email probe, on Capitol Hill, Tuesday, June 19, 2018 in Washington. (AP Photo/Jacquelyn Martin)

President Donald Trump speaks at the National Federation of Independent Businesses 75th anniversary celebration, Tuesday, June 19, 2018, in Washington. (AP Photo/Evan Vucci)

Rep. Elijah Cummings, D-Md., ranking member of the House Committee on Oversight and Government Reform, asks Republican colleagues to intervene in the separation of immigrant families at the border, during opening remarks at a joint House Committee on the Judiciary and House Committee on Oversight and Government Reform, hearing examining the Inspector General’s report of the FBI’s Clinton email probe, on Capitol Hill, Tuesday, June 19, 2018 in Washington. (AP Photo/Jacquelyn Martin)

Immigrant children play outside a former Job Corps site that now houses them, Monday, June 18, 2018, in Homestead, Fla. Wrenching scenes of migrant children being separated from their parents at the southern border are roiling campaigns ahead of midterm elections, emboldening Democrats on the often-fraught issue of immigration. (AP Photo/Wilfredo Lee)

The photo shows the Federal Detention Center where Blanca Orantes-Lopez is held away from her child Tuesday, June 19, 2018, in SeaTac, Wash. The woman from El Salvador sits in the federal prison south of Seattle, having reported to immigration authorities after crossing the U.S.-Mexico border illegally in Texas. Her son, Abel Alexander, is in the government’s custody at a children’s home in Kingston, N.Y. (AP Photo/Elaine Thompson)

A man waiting to gain access to the United States waits at Casa de Migrante, Tuesday, June 19, 2018, in Reynosa, Mexico. President Donald Trump is planning to meet with House Republicans Tuesday to discuss legislation, even as lawmakers in both parties complain about the administration’s “zero tolerance” approach to illegal border crossings, in particular the separation of families at the southern border. (AP Photo/Eric Gay)

The second-ranking Republican, John Cornyn of Texas, said they’re proposing a “humane, safe and secure family facility” where parents and minor children could be detained together. He said families would move to the head of the line for processing.

Senate Majority Leader Mitch McConnell, R-Ky., told reporters that all Senate Republicans are supporting the plan. He said he’s reaching out to Democrats for bipartisan backing, since the proposal would need to reach a 60-vote threshold for approval in the Senate.

But Senate Democratic leader Chuck Schumer of New York signaled that no such support would be coming, saying it’s already in Trump’s power to keep the families together.

“There’s no need for legislation. There’s no need for anything else. You can do it. Mr. President you started it, you can stop it.”

Republicans were scrambling to update their approach ahead of a visit from Trump, who called earlier in the day for Congress to approve what he called a third option to address the family separations.

“So what I’m asking Congress to do is to give us a third option, which we have been requesting since last year, the legal authority to detain and promptly remove families together as a unit,” Trump said Tuesday. “We have to be able to do this. This is the only solution to the border crisis.”

Trump’s meeting at the Capitol comes as lawmakers in both parties are up in arms after days of news reports showing images of children being held at border facilities in cages and an audio recording of a young child pleading for his “Papa.”

The issue boiled over Tuesday at a House hearing on an unrelated subject when protesters with babies briefly shut down proceedings.

Maryland Rep. Elijah Cummings, the top Democrat on the House Oversight and Government Reform Committee, pleaded with Republicans on the panel to end what he called “internment camps.”

“We need you, those children need you —and I am talking directly to my Republican colleagues— we need you to stand up to President Donald Trump,” he said.

Under the current policy, all unlawful crossings are referred for prosecution — a process that moves adults to the custody of the U.S. Marshals Service and sends many children to facilities run by the Department of Health and Human Services. Under the Obama administration, such families were usually referred for civil deportation proceedings, not requiring separation.

More than 2,300 minors were separated from their children at the border from May 5 through June 9, according to the Department of Homeland Security.

The national outcry over the separations has roiled midterm election campaigns, emboldening Democrats while putting Republicans on the defensive.

Top conservatives, including key Trump allies, have introduced bills to keep the migrant families together. Sen. Ted Cruz of Texas introduced legislation that the White House said it was reviewing, and Rep. Mark Meadows of North Carolina, a leader of the conservative Freedom Caucus, also introduced a measure.

“While cases are pending, families should stay together,” tweeted Cruz, who is in an unexpectedly tough re-election battle. He introduced his own bill to speed up court proceedings to no more than 14 days. “Children belong with their families,” he said.

Both bills seemed to be longshots. “This becomes a backup proposal,” Meadows told reporters at the White House.

The Trump administration insists the family separations are required under the law. But after signaling Monday that it would oppose any fix aimed solely at addressing that issue, the White House said Tuesday it was reviewing the emergency legislation being introduced by Cruz to keep migrant families together.

The senator’s bill would add more federal immigration judges, authorize new temporary shelters to house migrant families, speed the processing of asylum cases and require that families that cross the border illegally be kept together, absent criminal conduct or threats to the welfare of any children.

The two immigration bills under consideration in the House could address the separations, but the outlook for passage is dim. Conservatives say the compromise legislation that GOP leaders helped negotiate with moderates is inadequate.

Rep. Jim Jordan, R-Ohio, a member of the Freedom Caucus, said he’s skeptical that even a full-throated endorsement from Trump will be enough to get the compromise bill through the House.

The compromise bill in the House shifts away from the nation’s longtime preference for family immigration to a new system that prioritizes entry based on merits and skills. It beefs up border security, clamps down on illegal entries and reinforces other immigration laws.

To address the rise of families being separated at the border, the measure proposes keeping children in detention with their parents, undoing 2-decade-old rules that limit the time minors can be held in custody.