Leaders from both parties expressed concern about the political fallout of a shutdown so close to the 2024 election