The bill paves the way for major military and domestic program spending increases.