Senate passes funding bill to avoid October 1st government shutdown