The Republican leader in the US senate said a potential deal was “coming together” on the government shutdown but that there was no guarantee it would end an impasse now stretching to 40 days.