The House of Representatives on Thursday passed two immigration bills that help President Donald Trump in his fight against illegal immigration and sanctuary cities.

The bills — Kate’s Law and the No Sanctuary for Criminals Act — raise the penalties for undocumented immigrants who re-enter the United States after being deported and revoke federal grants from cities that do not comply with federal immigration enforcement.

Both bills passed largely along party lines after Republicans, including the President, heavily promoted them. Trump tweeted five times on Thursday to express his support for the pieces of legislation, once saying “MAKE AMERICA SAFE AGAIN” and other times saying he hopes the Senate will follow the House’s lead.

Homeland Security Secretary John Kelly also joined House Speaker Paul Ryan on Thursday to promote the bills, according to the Washington Post.

“President Trump has been clear that our borders are not open to illegal immigration, that we are a nation of laws, and we will no longer look the other way,” Kelly said on Thursday. “Well, we will no longer look the other way in the interior, either.”

“Kate’s Law” is named for Kathryn Steinle, who was killed in 2015 by an undocumented immigrant who’d been deported five times. Under the bill, an undocumented immigrant previously convicted of a crime who tries to re-enter the U.S. could face up to 10 to 25 years in prison, according to NBC News.

Democrats have sharply criticized the bills, saying they will have a negative effect on public safety and ratchet up fear among all immigrants. But Trump was happy with the House’s progress on Thursday, releasing a statement saying the legislation fulfilled promises he made while campaigning.

“The implementation of these policies will make our communities safer. Opposing these bills, and allowing dangerous criminals back into our communities, our schools, and the neighborhoods where our children play, puts all of us at risk,” the President said in his statement. “Now that the House has acted, I urged the Senate to take up these bills, pass them, and send them to my desk. I am calling on all lawmakers to vote for these bills and to save American lives.”

Get our Politics Newsletter. The headlines out of Washington never seem to slow. Subscribe to The D.C. Brief to make sense of what matters most. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Abigail Abrams at abigail.abrams@time.com.