The president threatened a government shutdown if a spending bill does not include funding for a wall on the border with Mexico.