A congressional funding bill that could prevent a federal government shutdown narrowly passed the House Tuesday, but not without cutting funding for several local projects.