Senate passes bill that could end longest shutdown in U.S. history, heads to House