The Indiana Senate on Thursday voted down a Republican bill to redistrict congressional districts, in a major blow to President Donald Trump.

Trump had successfully pushed partisan gerrymanders in statehouses across the country as the GOP tries to hold on to its razor-thin House majority.

The new map, passed by the Indiana House, could have netted Republicans two additional seats in the House.

The president and his top aides banketed Indiana in a pressure campaign to push the House-passed map, including visits from Vice President JD Vance. Trump took to social media on Wednesday night to personally blast Indiana House Speaker Rod Bray for opposing redistricting.

“He is putting every ounce of his limited strength into asking his soon-to-be very vulnerable friends to vote with him. By doing so, he is putting the Majority in the House of Representatives, Washington, D.C., at risk and, at the same time, putting anybody in Indiana who votes against this Redistricting, likewise, at risk,” Trump wrote.