The House on Wednesday approved a bill to end the nation’s longest-ever government shutdown, clearing the measure for President Donald Trump’s signature after a 43-day funding lapse that left federal workers unpaid, travelers stranded and families relying on food banks to get by.