On Monday, Obama shared an image that had been taken five years ago when he was in office, following the court’s ruling to legalize gay marriage. On Monday, Obama tweeted a picture of the White House lit by rainbow colors, with the message: “Today reminds us that progress might be slow. It might take decades.

But no matter what things might look like today, it’s always possible. Happy Pride month, everybody,” Obama added.

The White House was bathed in rainbow colors following the ruling on June 26, 2015 making same-sex marriage legal. The decision inspired former first lady Michelle Obama and the couple’s daughter Malia, to secretly join the public to celebrate the landmark decision, which she described in her book, Becoming.

The former president’s tweet on Monday came hours after a ruling by the court that under Title VII of the 1964 Civil Rights Act, gay and transgender people were protected against employment discrimination based on sex.

Justice Neil Gorsuch, who was the first appointee to the court by President Donald Trump, wrote in the majority opinion that “the answer is clear. An employer who fires an individual for being homosexual or transgender fires that person for traits or actions it would not have questioned in members of a different sex.”

Sex plays a necessary and undisguisable role in the decision, exactly what Title VII forbids,” he added.

The 6-to-3 ruling had tussled over the meaning of the word “sex” within the Civil Rights Act of 1964, which prohibited discrimination because based on gender.

The Trump administration had intervened in the case arguing that firing gay or lesbian employees would not be discrimination because workers of both genders “would be similarly situated—and they would be treated the same.”

However, Gorsuch’s ruling concluded: “It is impossible to discriminate against a person for being homosexual or transgender without discriminating … based on sex.”

Trump said that “we live with the decision of the Supreme Court,” which he described as “very powerful”, adding, “But they have so ruled.”

Many took to Twitter to praise the ruling. Taylor Swift tweeted: “We still have a long way to go to reach equality, but this is a beautiful step forward.”

Evan Wolfson, founder of Freedom to Marry, said of the ruling, according to NPR: “One big lesson from this opinion is don’t give up. You have to believe that you can change things.”

White House
The White House is lit by rainbow colors in Washington on June 26. 2015. Former president Barack Obama shared a different image taken that day when the Supreme Court legalized same sex marriage, after the court ruled in favor of LGBTQ employees.MLADEN ANTONOV//GETTY IMAGES