WASHINGTON (Reuters) - The U.S. House of Representatives, where Democrats now hold a majority, approved legislation on Thursday to end a partial government shutdown that began nearly two weeks ago at several federal agencies and fund the Department of Homeland Security through Feb. 8.

Under the bills, the departments of State, Commerce, Agriculture, Labor, Treasury and other agencies would be funded through Sept. 30, the end of the current fiscal year.

Hours before the vote, the White House said advisers to President Donald Trump would recommend that he veto the measure if Congress passed it without any additional money for Trump’s proposed wall along the U.S.-Mexico border.