Sometimes the most effective politics happens when someone finally calls a bluff. That’s exactly what played out in Houston this week, where the city council scrambled to reverse its sanctuary city ordinance after Governor Greg Abbott threatened to yank more than $110 million in state funding. Turns out progressive posturing loses its appeal pretty quickly when you’re staring down a budget crisis.

The whole mess started on April 8, when Houston’s city council passed an ordinance preventing local police from holding individuals with immigration arrest warrants for even 30 minutes while ICE agents made their way to the scene. Thirty minutes. That’s how long Houston’s leaders decided was too much of an inconvenience to help federal authorities enforce immigration law. Mayor John Whitmire, a Democrat, voted for it. The council celebrated it. And then reality showed up with a bill.

Abbott didn’t waste time with diplomatic pleasantries. He pointed out what should’ve been obvious from the start. The state requires that recipients of public safety grants must cooperate with ICE. It’s right there in the contract terms. If cities refuse to assist federal immigration enforcement, they forfeit the money and have to repay every single dollar they’ve already received. This isn’t some obscure legal technicality buried in fine print. This is basic contract law meeting common sense immigration policy.

Attorney General Ken Paxton filed suit almost immediately, making clear that no Texas city would become a safe harbor for illegal immigrants on his watch. The legal pressure worked. By Wednesday, the city council passed a revised ordinance in a 13 to 4 vote. The new version states that Houston police will comply with federal laws and can temporarily hold someone for as long as reasonably necessary. In other words, they’ll actually do their jobs.

You know what’s remarkable about this whole episode? How quickly principles evaporate when money’s on the line. The same mayor who voted for the sanctuary policy suddenly found himself working with Abbott’s office to craft a revised version. The same council that passed the original ordinance with such fanfare reversed course in less than two weeks. Whitmire even admitted the city was facing a “crisis situation” and that losing state funding posed real challenges for local authorities.

This is the problem with virtue signaling as governance. It feels good right up until someone asks who’s going to pay for it. Houston’s leaders wanted the moral satisfaction of defying federal immigration enforcement without accepting the financial consequences of that defiance. They wanted to have it both ways. Abbott made sure they couldn’t.

The broader lesson here extends far beyond Houston’s city limits. Blue cities across America have spent years declaring themselves sanctuaries, passing ordinances that hamstring local police from cooperating with ICE, and generally treating immigration enforcement as optional. They’ve done this while simultaneously accepting state and federal funding that comes with strings attached. It’s been the ultimate free lunch, and it’s coming to an end.

Abbott told The Daily Wire that cities playing these games have no cards to play. “We have all the cards in this, and they are going to lose, and they’re not going to be able to balance their budget.” He’s right. States control significant funding streams that cities depend on. The federal government under Trump is making immigration enforcement a priority again. Cities can’t have sanctuary policies and public safety grants. They have to choose.

What makes Houston’s reversal particularly satisfying is how it exposes the hollowness of sanctuary city rhetoric. These policies were never really about protecting vulnerable populations or promoting public safety. They were about political theater, about city leaders signaling their opposition to Trump and traditional immigration enforcement. But theater doesn’t fund police departments. It doesn’t pay for emergency services. It doesn’t keep cities running.

A spokesperson for Abbott called the reversal “a step in the right direction after Houston leaders put public safety at risk with reckless policies that undermined law enforcement.” That’s diplomatic language for what actually happened. Houston’s leaders tried to play politics with public safety and got caught. They gambled that Abbott was bluffing about the funding and lost badly.

Paxton said his office will continue reviewing the updated ordinance to ensure Houston fully complies with SB 4 and doesn’t restrict law enforcement’s ability to assist ICE. That’s the right approach. Trust but verify. Houston’s leaders have already shown they’re willing to pass sanctuary policies when they think they can get away with it. Keeping them honest requires ongoing oversight.

This is what winning looks like in the immigration debate. Not endless arguments about compassion versus security, not philosophical debates about federalism. Just straightforward enforcement of existing agreements and consequences for cities that try to break them. Houston wanted to be a sanctuary city. Texas reminded them that choices have costs. Now Houston gets to live with its choice.

Related: Senate Republicans Finally Break the Logjam on Border Security Funding