(CNN) The House failed Tuesday to override President Donald Trump's veto after both chambers of Congress sought to overturn his national emergency declaration to build more border wall.

The vote was 248-181, with 14 Republicans voting with Democrats to support the override. It was a steep hill to climb for opponents of Trump's national emergency as the House would have needed two-thirds of its members to back the veto override. Thirteen Republicans voted for the resolution in the first place.

"Today, Congressional Democrats attempted to block the President's National Emergency Declaration -- they failed," White House spokesman Hogan Gidley said in a statement after the vote. "Democrats continue to ignore the reality that our porous southern border is a magnet for illegal immigration, child smugglers, human traffickers, drug cartels, gangs and many other criminals. This national security and humanitarian crisis endangers every American and cannot be described as anything other than a National Emergency."

Both chambers of Congress had passed a resolution to overturn Trump's national emergency declaration to fund more border wall, which would use billions from the Treasury and Defense departments after Congress rejected giving Trump the full amount of border wall money he requested for the year.

The decision sparked criticism from Republicans and Democrats alike, many of whom argued the national emergency action would violate the Constitution.

Read More