The immigrants sent to CECOT were from Venezuela originally, that's why they cared about this. From the article about the motivations about that specifically
The release of the Venezuelans, meanwhile, is an invaluable win for Maduro as he presses his efforts to assert himself as president despite credible evidence that he lost reelection last year.
Long accused of human rights abuses, Maduro for months has used the migrants’ detention in El Salvador to flip the script on the U.S. government, forcing even some of his strongest political opponents to agree with his condemnation of the migrants’ treatment.
Their return will allow Maduro to reaffirm support within his shrinking base, while demonstrating that even if the Trump administration and other nations see him as an illegitimate president, he is still firmly in power.
In other reporting, El Salvador has basically just says that the whole deal was between the US and Venezuela directly and they didn't have involvement besides just moving them out. They were being paid by the US to hold them there in the first place, so now they are presumably just not being paid for it
They have enough votes (at the moment) to force this version to get through the house via a discharge petition (way of going around the speaker). All 212 dems + 10 republicans last I saw. We'll see if the 10 republicans who've said they'd back it actually hold up on final vote since they keep folding under pressure from Trump
Even if they do, I don't know if this has the votes in the Senate / nor is it a veto-proof majority. Though Trump vetoing it would likely rile up his base more on this