Lawmakers in both parties are hopeful that Tuesday’s elections will be the jolt needed to shift their shutdown strategy.