The Senate passed legislation early Friday morning to fund President Trump’s immigration enforcement agencies through the end of his term.