The vote Wednesday sends the measure to President Donald Trump for his signature after a historic 43-day funding lapse.