The U.S. Senate passed a crucial federal spending bill that provides funds for Ukraine and avoids a government shutdown.