The measure to fund the government into the fall now heads to the desk of President Donald Trump, who is expected to sign it.