WASHINGTON — US lawmakers on Tuesday approved a stopgap measure to fund the US government through November 18, sending the bill to President Barack Obama to sign into law.

The US House of Representatives passed the measure by a lopsided 352-66 vote, sending it to the White House with plenty of time to avert a partial government shutdown that would have occurred at midnight.

The Senate passed the legislation last week amid calls from key lawmakers to avoid the kind of angry standoff that led two months ago to the downgrade of Washington's once-sterling debt rating.

Feuds over disaster aid in the wake of Hurricane Irene as well as over a push to cut government spending and rein in the galloping deficit had brought the Congress to the brink of seeing non-vital services disrupted for lack of funds as the fiscal year 2012 dawned Saturday.