WASHINGTON (Reuters) - U.S. House of Representatives Speaker Paul Ryan sought to head off revolts on Wednesday from the right and center of his Republican Party as lawmakers battled over legislation that would protect young illegal immigrants from deportation.

At a morning news conference after huddling privately with rank-and-file Republicans, Ryan warned a small group of moderates that it would be a “big mistake” if they kept pushing a procedural maneuver to force a series of votes on four separate immigration bills.

Some Republicans worried such a debate could lead to a bipartisan immigration bill passing that might anger conservative Republicans at an inopportune time, with November elections approaching.

Majority Leader Kevin McCarthy told fellow Republicans at the closed-door morning meeting that things were going well for them, and “let’s not create a problem of our own making,” one House Republican lawmaker said, asking not to be named.

Ryan said he was working with the White House on a measure that would win President Donald Trump’s support. At the news conference, Ryan did not provide details or a timetable for advancing such legislation.

So far, 20 of the House’s 235 Republicans had signed a petition to force an immigration debate that would allow the bill with the most votes to advance to the Senate.

They want to join forces with Democrats to pull off the rare procedural trick in defiance of leadership. Some of the 20 signatories are retiring, while some others are moderates seeking re-election in November and represent districts with a significant number of Hispanics.

Slideshow ( 3 images )

‘NOT HAPPY WITH INACTION’

One of the four immigration bills, a bipartisan measure, would put the young “Dreamer” immigrants who were brought to the United States illegally when they were children, on a path to citizenship.

Another of the four bills, spearheaded by House Judiciary Committee Chairman Bob Goodlatte, would give temporary protections to the Dreamers but not offer citizenship, and is backed by more conservative Republicans.

Ryan also faced a challenge from the conservatives, as members of the hard-right House Freedom Caucus discussed withholding their votes on an unrelated farm bill later this week unless Ryan agrees to bring the Goodlatte bill alone to the House floor.

Last September, Trump said he was ending the Deferred Action for Childhood Arrivals, or DACA, program created in 2012 by then-President Barack Obama. It has protected some 800,000 of the young immigrants from deportation, allowing them to study and work in the United States under temporary protection.

Trump called on Congress to pass legislation replacing DACA and providing permanent protections for the youths. But he has given conflicting statements on precisely what he would support and Congress missed a March 5 deadline for sending him a bill.

Representative John Faso, a Republican who has signed the petition, told reporters: “I’m not happy with inaction” and noted that “time is running out” for Congress to do something about immigration before November elections.