WASHINGTON — President Trump signed the 9/11 Victim Compensation Fund bill into law Monday, surrounded by first responders in the White House’s Rose Garden.

“Today, we come together as one nation to support our Sept. 11 heroes,” he said.

To the first responders attending the ceremony, the president said, “You inspire all of humanity.”

Trump also called out Rudy Giuliani, who became known as “America’s Mayor” for his handling of the terror attacks in Lower Manhattan.

“Rudy’s got a lot of guts,” he told the crowd of first responders, White House staffers and a number of Republicans, including Rep. Peter King.

No Democratic lawmakers were included on the guest list or seen during the Rose Garden event.

Rep. Carolyn Maloney (D-NY), one of the lead sponsors of the bill in the House, told The Post she hadn’t been invited.

Senate Minority Leader Chuck Schumer (D-NY) was invited by the White House just before 1 a.m. Saturday, but was already due to travel upstate.

A White House official said Monday, “Every member of Congress was invited to attend today’s event.”

Trump’s signature marked the end of a 15-year fight to get the government to permanently pay claims to first responders and other victims who were sickened by the toxic fumes in the days and weeks following the Sept. 11, 2001, terror attacks.

It came after powerful testimony in mid-June from first responder Luis Alvarez, an NYPD detective who contracted cancer.

Alvarez came to Washington before his 69th round of chemotherapy and spoke at a poorly attended congressional hearing, leading to former “The Daily Show” host Jon Stewart’s viral shaming of lawmakers that upped public support for the bill.

Alvarez died in late June, but gave his police badge to Senate Majority Leader Mitch McConnell, inspiring the Kentucky Republican to commit to passing the bill by August.

The bill cleared the House of Representatives on July 12.

On Tuesday, it passed the Senate on a vote of 97-2.

The bill was rechristened to include Alvarez’s name in the title, as well as other Ground Zero heroes-turned-first responder activists James Zadroga and Ray Pfeifer.

“Today’s a good day. Today’s exactly one month since my brother died. Today we got to see this done. And I know he’s happy,” said Luis Alvarez’s brother Philip, speaking to reporters after the event.

Battalion Chief John Joyce, who was the fire chief of a Midtown Manhattan firehouse on Sept. 11, got a shout-out from the president onstage — for mentoring many of the 28 children of his 15 fellow firefighters who gave their lives that day.

He was diagnosed with cancer in 2011.

“Guys like myself and other first responders are suffering from the effects of 9/11,” he told The Post. “The good news with this and the joy that this brings is they, tomorrow, don’t have to wake up and worry about whether they’re going to lose their house, or they’re going to get their medication or whether or not they’re going to survive, because they have to make a financial decision on what to do.”

Joyce also viewed it as a big political win.

“The bipartisanship on this whole thing and the president pushing this thing from day one has been an overwhelming success and it shows we can actually work together,” Joyce added.