The federal government will officially enter a shutdown at midnight after Congress failed to reach an agreement on spending.