Former President Obama took to Twitter late Monday to wish the country a “Happy Pride month” after the Supreme Court ruled that gay and transgender people are protected against employment discrimination under existing civil rights laws.

“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 tweeted on Monday night.

The tweet also featured a photo captured by former White House photographer Pete Souza in 2015 showing rainbow colors cast over the White House after the Supreme Court ruling legalizing gay marriage.  

Hours before Obama’s tweet on Monday, the Supreme Court ruled that gay and transgender people are protected against employer discrimination under Title VII of the 1964 Civil Rights Act on the basis of sex.

"Today, we must decide whether an employer can fire someone simply for being homosexual or transgender," Justice Neil GorsuchNeil GorsuchTop GOP super PAC endorses Murkowski amid primary threat Trump-era grievances could get second life at Supreme Court Supreme Court sides with Google in copyright fight against Oracle MORE wrote in the opinion. "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 ruling was met with praise from LGBTQ rights groups and advocates, though Gorsuch got pushback from some conservatives for joining the more liberal justices and Chief Justice John Roberts in the decision.

President TrumpDonald TrumpTrump mocks Murkowski, Cheney election chances Race debate grips Congress US reentry to Paris agreement adds momentum to cities' sustainability efforts MORE, whose administration argued the protections did not extend to gay and transgender workers, also remarked on the ruling Monday.

"I’ve read the decision, and some people were surprised. But they’ve ruled and we live with their decision," he said.