Senate passes bill to end shutdown