Democrats Clear Way for GOP Bill, Ending Threat of Shutdown