U.S. President Donald Trump told Republican lawmakers on Tuesday he would back either of the immigration bills making their way through the House of Representatives, as the outcry grew over his administration’s separation of immigrant parents and children at the U.S.-Mexico border.

Representative Mark Meadows said Trump told Republican members of the House at a meeting on Capitol Hill that they needed to get something done on immigration “right away.”

In the meeting, Trump said separating families was “certainly not an attractive thing and does look bad,” added Representative Tom Cole.

The president has sought to link an end to the family separations to passage of a wider bill on immigration, which would include funding for his long-sought border wall with Mexico, prompting Democrats to accuse him of using children as hostages.