US congressional leaders have agreed on a two-tranche funding bill to keep the federal government funded into March, a source familiar with the measure told Reuters on Saturday, averting a partial government shutdown that was to start late next week.