The Senate on Monday advanced a temporary spending bill that would end the government shutdown.