House Speaker Paul Ryan said Thursday "there is no agreement" with Democrats on passing the Dream Act to protect immigrants who entered the U.S. illegally as children, countering a claim by Democratic leaders that they sealed a deal with President Trump Wednesday night.

Ryan, R-Wis., said he discussed Trump's meeting with Democrats in a call with Trump Thursday morning, and with Trumps' chief of staff John Kelly. Ryan said Republicans are now discussing legislation, but nothing has been decided and GOP has not started negotiations.

"It was a discussion and not an agreement or a negotiation," Ryan said, characterizing the way Trump described the dinner to him.

Ryan said the legislation "will be a compromise," and that it will include "border security and enforcement," in order to avoid having to continuously deal with young illegal immigrants who arrived in the United States as children.

The legislation Democrats want to pass would codify into law President Obama's Deferred Action for Childhood Arrivals (DACA), which faces court challenges and is being phased out in six months by Trump.

"You cannot fix DACA without fixing the root cause of the problem," Ryan said. "We need border security and enforcement as part of any agreement. I think that is something Democrats are beginning to realize."

Ryan did not specifically include the need for money to fund a southern border wall, which Democrats said they have ensured will not be included in the legislation.