NEW YORK (TheStreet) -- The House of Representatives Wednesday night passed a bill to fund the government and raise the nation's borrowing limit.

By a vote of 285 to 144, Republicans and Democrats upheld a bill negotiated by Senate Majority Leader Harry Reid and Minority Leader Mitch McConnell after a near-three week shutdown of the government and shortly before the United States was to be unable to pay its debts.

Earlier in the evening, the Senate passed the bill 81 to 18. Difficulties had arisen when the Republican-controlled House and Democratic-controlled Senate could not agree to various forms of bills to fund the government and raise the debt limit.

-- Written by Joe Deaux in New York.

>Contact by Email.

More from Politics

Trump Tweets Plans For Saturday Announcement About Shutdown and Wall

Trump Tweets Plans For Saturday Announcement About Shutdown and Wall

Jim Cramer: If We Get a China Deal, Then This Rally Is In Its Infancy

Jim Cramer: If We Get a China Deal, Then This Rally Is In Its Infancy

Jim Cramer on How to Position a Portfolio During a Government Shutdown

Jim Cramer on How to Position a Portfolio During a Government Shutdown

Uptrend Continues as Traders Seek Good News on China Trade, and Squeeze Shorts

Uptrend Continues as Traders Seek Good News on China Trade, and Squeeze Shorts

3 Things to Know at the Market Close: Bank Earnings, GDP Report and Jim Cramer

3 Things to Know at the Market Close: Bank Earnings, GDP Report and Jim Cramer