The Senate passed a procedural vote on a three-bill spending package funding commerce, justice, energy and interior agencies as Congress works to prevent government shutdown.