WASHINGTON (AP) _ Capping marathon talks, congressional Republicans and the White House cleared the last known obstacle Wednesday night to agreement on a $390 billion budget bill that includes a small across-the-board cut.

Sen. Pete Domenici, chairman of the Senate Budget Committee, said the deal was sealed after Republicans agreed to White House demands for additional flexibility in the application of the across-the-board cuts.

``Jack Lew (President Clinton's budget director) and I just made the deal,'' the New Mexico Republican said in the Capitol shortly before midnight. ``... The budget bill has been agreed to.''

A White House official, Linda Ricci, confirmed that agreement had been reached on the so-called flexibility issue. She added that White House officials were continuing to read the remainder of the massive bill ``with a close eye'' to make sure earlier agreements funding Clinton's priorities were included accurately.