WASHINGTON — The White House tried Sunday to keep congressional negotiations over immigration law on track, reassuring senators that the administration did not leak details of a draft bill being written by the administration.

White House aides said they were caught by surprise when details from a draft of an administration bill were published Saturday, and quickly contacted the eight Republican and Democratic senators who have been working behind the scenes on a compromise bill.

Obama’s aides said in the phone calls that the president is pleased with the progress in Congress and said the administration had not leaked the details to nudge the process along, according to a White House official who spoke on the condition of anonymity because the conversations were private.

Obama said last month he would propose his own legislation only if the Senate drive stalled.

The furious Republican response to the disclosure – Sen. Marco Rubio of Florida called the draft bill “half-baked and seriously flawed,” and former vice-presidential candidate Rep. Paul Ryan of Wisconsin called the leak “counterproductive” – highlighted how fraught the negotiations have become.

“This raises the question: Does the president really want a result, or does he want another cudgel to beat up Republicans so that he can get political advantage in the next election?” Sen. John McCain, R-Ariz., said on NBC’s “Meet the Press.”

McCain is one of four Republicans, including Rubio, who with four Democrats who are trying to write a new immigration law.

Sen. Charles E. Schumer, D-N.Y., another member of the group, said he was not upset at the leaked draft legislation.

Obama “agreed to give us the space we need to come up with a bipartisan proposal,” Schumer said on CNN’s “State of the Union.” “I am very hopeful that in March we will have a bipartisan bill.”

Denis McDonough, the newly appointed White House chief of staff, used previously scheduled appearances on several TV talk shows to contain the political damage. He reiterated that the White House would only try to push its own bill if the efforts in Congress failed to move quickly.

“Let’s make sure that it doesn’t have to be proposed,” McDonough said on ABC News’ “This Week.”