Obama signs bill to ensure army will be paid during shutdown