The U.S. government has shut down, after Congress failed to pass funding legislation before a midnight deadline on Tuesday.