The government has shut down for the first time since 2019 after lawmakers failed to reach an agreement to extend federal funding by midnight Tuesday.