It will need to be approved by the House and then signed into law by the president before the government can reopen.