By Jonathan Davies
The US House of Representatives has passed a bill which will allow the government to have a $1.1 trillion budget, just hours before the government was due to shut down.
The budget will fund the majority of the US government until September 2015, but some areas will only receive short-term funding.
The bill, championed by the Republican party, was passed by just 13 votes. It was largely down to President Barack Obama calling on his Democrats to support the bill - 57 voted in favour, which proved crucial.
The $1.1 trillion budget funds government departments at the same levels that were negotiated in December 2013. But it includes extra funds to tackle the Ebola crisis in West Africa and for air strikes against Islamic State.
Despite President Obama's calls for the Democrats to support the bill, some of the party weren't happy about his position.
"We don't like lobbying that is being done by the president or anybody else that allows us to... give a big gift to Wall Street," Democrat congresswoman Maxine Waters said.
Join us on