This spring, the Immigration Hub, a progressive advocacy group, commissioned polls about immigration in Pennsylvania, Michigan, and Colorado. Likely voters were asked if the United States should “welcome immigrants responsibly” or if the country was already “full,” as President Donald Trump has said. An overwhelming number of the respondents—sixty per cent in Pennsylvania, sixty-nine per cent in Michigan, and sixty-four per cent in Colorado—supported the idea that the U.S. should be a place of refuge. The next question was whether these same voters backed proposals that included “addressing the root causes of migration, investing in programs to better process refugees, and ensuring that refugees have the right to apply for protection.” Similar majorities in all three states embraced the pro-immigration policies, while rejecting measures designed to make it harder for asylum seekers to enter the country.

What these views have in common is that they are the explicit positions of the Democratic Party. In May, for instance, a group of Senate Democrats reintroduced the Central America Reform and Enforcement Act, a bill designed to address the root causes of migration from Central America and to improve the processing of asylum claims at the U.S. border. For the past two years, Democrats have also consistently opposed the harshest policies of the Trump Administration, from the travel ban to family separation, while Republicans have largely remained silent. But, in response to the final question on the survey, which asked who is “best addressing” the crisis at the border—Republicans or Democrats—a majority of respondents in all three states felt that Republicans were doing a better job. “Voters choose responsible and humane solutions,” Tyler Moran, the director of the Immigration Hub, told me. But the polling results “tell us that they aren’t connecting these solutions to Democrats.” That doesn’t mean that Democrats should chase after a “more conservative audience,” Moran said. Instead, they need to more clearly articulate their positions. “Wide swaths of voters are turned off by Trump’s rhetoric,” she said. “But they often aren’t clear about where Democrats stand.”

This isn’t a problem that the Republicans share. Trump made immigration the centerpiece of his 2016 campaign and has redoubled the message in his reëlection bid. Within the last year, he has twice tried to ban asylum at the border, forced more than twenty thousand asylum seekers to wait in Mexico, announced nationwide immigration raids, and cut aid to Central-American governments. Admittedly, many of these efforts came up short of their intended goal. A federal court blocked both asylum bans; a recent operation by Immigration and Customs Enforcement designed to target two thousand migrants led to the detention of thirty-five. A former ICE official told me that Trump has brought a sense of chaos to the agency, with incomplete directives and operational holdups. The Obama years, the agent said, were far more efficient, with less drama and more arrests. Yet Trump, with his constant thrum of anti-immigrant rhetoric and policy announcements, has created an impression of decisiveness. No one wonders where the President stands on immigration.

By contrast, last month’s fight among House Democrats over a supplemental funding bill, drafted in response to the humanitarian crisis at the border, highlighted the Party’s disunity. For weeks, Congress had been considering measures to supply additional money to the Department of Homeland Security, which it claimed to urgently need to process a record number of families seeking asylum. At the same time, Trump was threatening to arrest “millions” of people in ICE operations across the country, and there were fresh reports of a Border Patrol facility in Clint, Texas, where hundreds of children had been forced into tiny cells without food or basic provisions for weeks. Both news items provoked outrage, raising the stakes for members of Congress to craft a solution. A senior Democratic aide told me that the Party’s members recognized the need to allocate additional funds for humanitarian relief, but they were also wary of giving the Trump Administration a blank check; after all, the agencies tasked with temporarily housing migrants at the border—Customs and Border Protection, for one—were also active in the President’s enforcement agenda. Members of the Congressional Hispanic and Progressive caucuses, in particular, argued that the problem couldn’t simply be solved with more funding. “Money is not the issue here,” Representative Pramila Jayapal, of Washington, the co-chair of the House Progressive Caucus, told me. The squalid conditions of borderland detention facilities, she said, “were being kept that way because the Trump Administration continues to trade in cruelty and to use it as a deterrent. None of this is because they didn’t have money.”

The Senate and House bills that emerged before a July 4th deadline included checks to prevent the Administration from using the humanitarian money to arrest and deport more people. The House version went even further, attaching additional conditions that the government would have to meet, including basic medical care and improved legal and social services. Even so, Representative Alexandria Ocasio-Cortez, of New York, backed by members of the Squad, a prominent group of freshman progressives in the House, refused to vote for a House bill that funded any aspect of D.H.S. operations at the border. Eventually, it didn’t matter. Their counterparts in the Senate grew impatient and passed their own bill, with bipartisan support. House leadership was stunned. “The Senate has a good bill,” Pelosi said at the time. “Our bill is much better.” A senior House aide told the Washington Post, “Schumer destroyed all our leverage.”

In the House, where Pelosi was struggling to hold together a diverse caucus, moderate and conservative Democrats, many of whom consider immigration a risky issue, saw an opportunity. They lobbied colleagues to oppose the House bill in an attempt to force Pelosi to adopt the Senate version instead. Eighteen members, from the Problem Solvers Caucus and the Blue Dog Coalition, formed a block, which was enough to sink the House bill. Progressives felt betrayed. (At one point, after a progressive House member tweeted that the Problem Solvers Caucus should be called “the Child Abuse Caucus,” a confrontation erupted on the House floor.) “A lot of these moderates are scared to seem too pro-immigrant,” a member of the Congressional Hispanic Caucus told me. “Many of the moderates seem to wish we could just not talk about immigration at all.”

I recently spoke to six current and former congressional staffers about the Party’s political dilemma on immigration. Everyone was frustrated by the outcome of the border-funding debate. One of them told me the Democrats were shifting “too far to the left,” while another worried that skittish moderates were shifting to the right. (Both staffers—one currently working in the House, the other retired from the Senate—are left-of-center progressives.) “Moderates want to do something to bring numbers down, even if that means changing some asylum laws,” a Democratic staffer in the House said. “But the far left is loath to do anything like that. Most of the rest of the Party is stuck in the middle. Because they feel like they can’t win, they just keep their heads down.” The situation within the Party will only get worse, a number of the staffers told me. The Presidential primary is pulling the Democratic candidates further to the left, and budget votes scheduled for the fall, including measures to fund the agencies executing the President’s immigration-enforcement agenda, will force the Party to restage contentious debates about its policy priorities. “We are going to get split apart in our party,” the Democratic staffer told me. “That’s a war I see coming.”