The Senate passed a bill to end the federal government shutdown, which reached its 41st day Monday, marking the longest shutdown in history by nearly a week.