The U.S. Senate on Thursday rebuked President Donald Trump by voting to end his border emergency declaration, as 12 Republicans joined Democrats to deliver a second blow in as many days to the president, who quickly pledged a veto.

The 59-41 vote was a bipartisan repudiation of Trump’s decision to circumvent Congress and take money already designated for other programs and redirect it to pay for his U.S.-Mexico border wall, which he promised to build during his 2016 campaign.

In the first two years of his term, the Republican-led Congress mostly accommodated Trump, which spared him from having to use his veto pen. With Republicans showing increased willingness to defy him, Trump promised a change.

I look forward to VETOING the just passed Democrat inspired Resolution which would OPEN BORDERS while increasing Crime, Drugs, and Trafficking in our Country. I thank all of the Strong Republicans who voted to support Border Security and our desperately needed WALL!