House approves bill to fund Homeland Security Department and end record shutdown, sending it to Trump to sign