The U.S. Senate passed a bill to fund the Department of Homeland Security and end the partial government shutdown early Friday morning.