Oh, happy day!

Same sex couples can now adopt children in 50 states.

On Thursday, a federal judge ruled that Mississippi’s ban on same-sex couples adopting children is unconstitutional, which means that adoption for LGBTQ couples is legal in all fifty states.

The United States District Judge Daniel Jordan first issued an injunction citing the Supreme Court’s decision to legalize same-sex marriage nationwide last summer. This injunction blocks Mississippi from enforcing its 16-year-old anti-gay adoption law.

“It also seems highly unlikely that the same court that held a state cannot ban gay marriage because it would deny benefits — expressly including the right to adopt — would then conclude that married gay couples can be denied that very same benefit.”

The challenge to the state’s law was filed last year by four same-sex couples who were joined by the Campaign for Southern Equality and the Family Equality Council.

“Two sets of our clients have waited many (almost 9 and 16) years to become legal parents to the children they have loved and cared for since birth,” Roberta Kaplan, lead attorney for the plaintiffs, said in a statement. “We hope that it should finally be clear that discrimination against gay people simply because they are gay violates the Constitution in all 50 states, including Mississippi.”

The Human Rights Campaign’s Mississippi state director Rob Hill also praised the ruling.

“This welcome decision affirms that  qualified same-sex couples in Mississippi seeking to become adoptive or foster parents are entitled to equal treatment under the law, and commits to the well-being of children in our state who need loving homes,” he said in a statement. “Judge Jordan has repudiated reprehensible efforts by our elected leaders to deny legal rights to our families. They are on the wrong side of history, and today’s decision confirms, yet again, that they are also on the wrong side of the law.”

The ruling came soon after Mississippi’s Senate passed a “religion freedom” bill which would give businesses the right to deny service to LGBT people.

(Photo Credit: Pacific Press/Getty Images)