The roughly $70 billion package will fund the two agencies through the end of President Donald Trump’s term. The Republican-led effort passed 214-212.