The U.S. Senate on Saturday passed a $1.1 trillion spending bill that lifts the threat of a government shutdown.