The U.S. women won their fourth World Cup, and the praise rolled in from all sides. (Bernadett Szabo/Reuters)

Shortly after the final whistle blew and the U.S. women’s national team clinched its fourth World Cup title with a 2-0 win over the Netherlands on Sunday, social media erupted with congratulations from politicians, celebrities and athletes who were following the Americans’ pursuit of history.

“Congratulations to the U.S. Women’s Soccer Team on winning the World Cup!” President Trump wrote on Twitter later Sunday afternoon. “Great and exciting play. America is proud of you all!”

“Congratulations to 2019 Women’s World Cup Champions,” tweeted first lady Melania Trump.

President Trump has criticized American star Megan Rapinoe for not singing the national anthem before matches but said in June that he would invite the U.S. team to the White House regardless of whether it returned from France with a trophy.

Barack and Michelle Obama also extended their congratulations to the U.S. team.

“Congrats to the record breakers on the USWNT, an incredible team that’s always pushing themselves — and the rest of us — to be even better,” Barack Obama tweeted. “Love this team.”

Tennis legend Billie Jean King praised the Americans for bringing attention to the issue of equal pay for women athletes throughout this year’s tournament. A chant of “Equal pay! Equal pay!” rang out from the sellout crowd at Stade de Lyon after Sunday’s match.

“These athletes have brought more attention, support, & pride to women’s sport than perhaps any other team in history,” King tweeted, and Serena Williams agreed.

“It is long past time to pay them what they rightly deserve,” King also wrote.

Hillary and Bill Clinton, Ellen DeGeneres, U.S. soccer greats Mia Hamm and Tim Howard and NFL stars Tom Brady and Aaron Rodgers were among the others who celebrated the Americans’ triumph on Sunday.

“The US women’s soccer team are the world champions!” DeGeneres tweeted. “I’m so happy. These women are the best of what our country represents. You’re welcome on my show any time. My World Cup runneth over.”

“World domination,” wrote former NBA MVP Stephen Curry. “Thank you for inspiring EVERYbody. Real life superheroes.”

Read more from The Post:

The USWNT is after something far more subversive than just better pay

Megan Rapinoe caps spectacular World Cup with game-winning goal, claims Golden Boot

Rose Lavelle has been U.S. soccer’s World Cup revelation

Megan Rapinoe: ‘I’m particularly and uniquely and very deeply American’

The World Cup has been a smash. But women’s soccer still craves an elusive goal: Lasting impact

The U.S. women are part of a movement. They won’t be the only female athletes to speak up.

Sunday feast of U.S. soccer has a bitter aftertaste for some