Avoiding a government shutdown, the U.S. House of Representatives has passed a crucial federal spending bill and clarified the vice president's role in certifying a presidential election.