A bitter mood prevailed on Capitol Hill as US lawmakers struggled to find a compromise measure to lift the nation's $14.3 trillion debt, as talks to avert a ruinous default went down to the wire.