Texas lawmakers heard hours of public testimony Thursday and into early Friday morning over a bill banning so-called “sanctuary cities” in Texas, ultimately voting early this morning 7-2 along party lines to send the bill to the full Senate.

Hundreds came to the Capitol to speak on Senate Bill 4, which would financially penalize any local jurisdiction that doesn’t cooperate with warrantless requests from U.S. Immigration and Customs Enforcement (ICE) to detain undocumented immigrants.

Nearly 500 people signed up to testify about the bill over the 16-hour stretch. Austinite Ann Glenn was one of them.

“It’s extremely upsetting for the governor – who is all about local control – trying to make local entities, local governments, do the work of the federal government," she said.

While there is no legal definition of “sanctuary city,” it generally refers to a local entity that has a policy limiting cooperation with ICE.

Travis County Sheriff Sally Hernandez adopted a similar policy this week, a move that prompted Gov. Greg Abbott to cut $1.5 million in grants to the county. Abbott singled out Hernandez in the weeks ahead of the rollout and even made a legislative ban on the policy one of his emergency items for the legislative session.

Travis County’s policy honors requests from ICE to further detain an undocumented immigrant who has been booked into the jail only in the case of murder, aggravated sexual assault or human smuggling.

In the two days after the policy went into effect, the county declined almost 200 requests from federal immigration authorities to hold possibly undocumented immigrants.

Bob Libal, executive director of Grassroots Leadership, which opposes for-profit private prison and detention centers, celebrated the county’s actions.

“We have been really heartened by the strength that Sheriff Hernandez and our other elected officials have shown, especially in the face of the bullying that’s coming from the governor’s office and the threats coming from the president,” he said.

Sen. Charles Perry (R-Lubbock), who authored the bill, and Sen. Sylvia Garcia (D-Houston), sparred Thursday over the legality of local law enforcement not honoring all ICE detainers.

“Even the federal government acknowledges that it’s up to the local elected officials to set their priorities and allocate their resources,” Garcia said. “[Local law enforcement] are the ones that are on the ground who can really know what they need to do to make their community safe. I’m just baffled by the suggestion that they’re not following the law.”

KUT's Audrey McGlinchy reports

According to several immigration lawyers, ICE detainers are warrantless so local law enforcement agencies handle them as requests to detain. Several courts have upheld this view of the law.

But Perry contended that local law enforcement officials that don’t, at the very least, communicate with ICE are in violation of federal law.

“We seem to have a proliferation, a momentum, almost a culture of contempt for the federal law in this area,” he said. “And that’s a dangerous path we go down.”

Austin Police Department Interim Chief Brian Manley also spoke out against the bill.

“Perhaps my greatest concern is what this will do to police-community relations,” Manley said. The bill excludes those detained by local law enforcement because they are a victim or witness to a crime, or they are reporting a crime.

“Once you break down that trust I just don’t think the community will see it the same,” he said. “And they will see that their local police departments are involved in immigration enforcement."

On Friday, state Rep. Eddie Rodriguez (D-Austin) announced an initiative called Travis County #Stronger Together, a partnership with the Austin Community Foundation to raise money for the programs affected by the funding cuts.

"The people of Travis County are resilient and take care of each other. That's what Travis County #StrongerTogether is all about,” he said in a statement. "If Governor Abbott is willing to sacrifice our veterans, women and children to score political points, then we will show him the power of love.”

The governor made a sanctuary city bill an emergency item, expediting the process it takes to become the law. The bill will now go to the full Senate for a vote.