The US national women’s team has won a $24 million payout and a promise of equal pay going forward in a landmark settlement with US Soccer, the two sides announced on Tuesday in a joint statement.

“US Soccer has committed to providing an equal rate of pay going forward for the Women’s and Men’s National Teams in all friendlies and tournaments, including the World Cup,” the terms of the deal, sent to AFP, said.

The question of World Cup prize money had formed a prominent part of the lawsuit filed by the US women’s football team in 2019, which accused the federation of “stubbornly refusing” to pay its men and women’s players equally.

“I think we’re going look back on this day and say this is the moment that, you know, US Soccer changed for the better,” star player Megan Rapinoe said in an interview with ABC after the deal was announced.

“Obviously we can’t go back and undo the injustices that we faced but ... we know that something like this is never gonna happen again,” she continued, adding she hopes that they can now “move forward” with “setting up the next generation so much better than we ever had it. So it’s a great day.”

Her teammate Alex Morgan, also speaking on ABC, called the deal “a monumental step forward in feeling valued, feeling respected and just mending our relationship with US Soccer.”

The agreement stipulates that $22 million will be distributed to the players, while $2 million will go into an account to benefit them “in their post-career goals and charitable efforts related to women’s and girl’s soccer”.

The settlement is contingent on a new collective bargaining agreement, which needs to be ratified before the deal can be finally approved by a court.

A federal judge had rejected the claim of pay discrimination, but the US women then launched an appeal.

The 2019 lawsuit cited the discrepancy in World Cup prize money payments paid to the two teams in 2014 and 2015.

The US men received $5.375 million for reaching the round of 16 at the 2014 World Cup, while the women received $1.725 million for winning the 2015 tournament.

The USSF had argued that its hands were tied because the prize money is set by Fifa, which awarded $38 million to France for winning the 2018 men’s World Cup in Russia, but only $4 million to the American women for winning the 2019 Women’s World Cup.

In September last year US Soccer Federation president Cindy Parlow Cone said the body hoped to equalize the World Cup prize money for its players.

“Until Fifa equalizes the prize money that it awards to the Men’s and Women’s World Cup participants, it is incumbent upon us to collectively find a solution,” she wrote in an open letter addressed to fans.

She said the gulf in prize money paid out by Fifa was “by far the most challenging issue” facing US Soccer in pay negotiations with men’s and women’s teams.