A midnight Friday deadline is looming for the U.S. Senate to pass a federal funding bill to avert a government shutdown.