The US government has shut down after Congress failed to pass a stopgap funding bill, marking the first closure since 2019.