A shutdown of the US federal government,the first in nearly two decades,was looming close on Monday night as Congress careered toward a midnight deadline with little prospect of a deal to avert the crisis caused by a determined bloc of rightwingers in the House of Representatives.