The move looks certain to be vetoed by President Trump in a row over funding for his border wall.