The House of Representatives passed a pair of bills Thursday aimed at cracking down on illegal immigrants and the cities that grant them official sanctuary.

“Kate’s Law” would increase penalties for people who sneak back into America after being deported, with some facing up to 10 years in the slammer.

The measure is named for Kate Steinle, who was shot and killed in San Francisco two years on Saturday, allegedly by an illegal immigrant who had been deported five times.

The other bill — the “No Sanctuary for Criminals Act” — requires that local authorities honor federal “detainers” placed on illegal immigrants so they can be picked up to face deportation.

Failure to comply would cost municipalities federal funding for law-enforcement efforts.

The Justice Department has already threatened New York City with the loss of $4.3 million in anti-crime grants over its “sanctuary city” policies, and in April gave officials until Friday to prove they aren’t violating federal law.

Mayor de Blasio called both bills “un-American.”

“New York City has hit on the right approach to make this the safest big city in the country: welcome immigrant communities to build trust and cooperation with local law enforcement,” he said.

President Trump hailed passage of the measures — largely along party lines in the Republican-controlled House — and urged the Senate to follow suit so he could sign them into law.

“These were bills I campaigned on and that are vital to our public safety and national security,” Trump said.

The Senate, which has rejected previous versions of both bills, is expected to consider the legislation following its Fourth of July recess.