U.S. President Donald Trump urged his fellow Republicans on Thursday to overcome sharp internal divisions over immigration policy, a debate closely enmeshed with a deadline to fund the government that looms next week.

Congress needs to agree by Feb. 8 on another temporary spending bill. A failure to do that last month led to a three-day government shutdown, resolved in part by a promise by Senate Republican Leader Mitch McConnell to hold a vote on a plan to extend protections for young "Dreamer" immigrants.

"We're going to have to compromise, unless we elect more Republicans," Trump told lawmakers from his party at a countryside retreat, alluding to the party's need for support from some Democrats to pass major bills in the Senate, and to congressional elections in November.