(WENN) - John Legend took to social media to celebrate after learning Democrats had won the House of Representatives in the midterm elections on Tuesday.

Americans hit the polls on Tuesday, and later that night it was revealed that Democrats had won control of the House - the first time the party had had the majority in the lower chamber for eight years. The result is a massive blow to President Donald Trump as it will restrict his ability to steer his agenda through Congress, although the Republican Party still has the majority of the Senate, the upper chamber.

The All of Me singer, an outspoken critic of Trump who has been campaigning for citizens to vote Democrat, took to Twitter to celebrate the news.

People worked so hard around the country. Many voted who had never voted in the midterms. That was due to organizing and tenacity. I’m grateful for everyone’s sacrifice,” he wrote. “Flipping the house despite all the gerrymandering was no small feat. Despite it being expected by the polls, this is still a BFD (big f**king deal). The House has so much power to hold the president accountable. I look forward to some real oversight.

Eva Longoria, another celebrity who attended political rallies, shared a picture of a news report announcing the result, and posted, “Yes!!!! Let the governing begin! #Midterms #Vote.”

Debra Messing posted a picture on Instagram showing her on a sofa with Connie Britton and Chelsea Handler, and wrote, “We won the House back and that is something to celebrate. There will be accountability; the checks and balances that our forefathers imagined.

Tonight everyone who stumped and called and canvases and texted can feel a sense of pride that it brought about change. We had some heartbreaking losses, for sure, but we will start again tomorrow. We will continue to fight for integrity and equality and decency and justice.

The Will and Grace star also celebrated some of the landmarks that emerged during the results, including the first openly gay man elected governor and the first two Native American women elected to Congress, while other stars, such as Maggie Gyllenhaal and John Cusack, celebrated the fact more than 100 women had been elected into the House for the first time ever.