Democrats and Republicans have reached an agreement in principle over border security to fund the US government and avert another partial shutdown.

Lawmakers said the deal had been struck in a closed-door meeting in Washington.

No details have been released. Talks had stalled on the detention of undocumented migrants and funding for President Donald Trump’s border wall.

Speaking late on Monday, he did not say whether he would back the deal. “We’re building the wall anyway,” he stressed.

However, the Democrats – who now control the House of Representatives – have refused to approve the $5.7bn (£4.4bn) Mr Trump has demanded for his border wall.

Reports say the deal includes $1.375bn in funding for 55 miles (88km) of physical barriers, a fraction of the more than 200 miles promised by the president.

Addressing supporters in El Paso, Texas, Mr Trump said he had had no time to study the agreement, but stressed that he would “never sign a bill that forces the mass release of violent criminals”.