The Supreme Court on Monday upheld a federal ban on same-sex marriage, reversing a lower court ruling that had thrown out the state’s ban.
The justices voted 5-4 to uphold the ban on a challenge brought by the state of Maryland.
The case is part of a series of decisions that will decide whether the federal Defense of Marriage Act will be extended to gay couples.
The court also struck down the federal government’s ban on marriage benefits for same-gender couples.
In its majority opinion, the court said the federal law was a denial of equal protection under the law and was therefore unconstitutional.
The court said DOMA was intended to protect the institution of marriage, and that DOMA violated the equal protection clause of the 14th Amendment.
The case was brought by two gay couples, who sued to overturn the ban.
The two couples sued because of the ban’s ban, which requires that same-year marriage licenses be filed with the Maryland secretary of state and state officials must issue them within two weeks.
In 2016, a federal judge ruled that the ban violated the U.N. treaty on the rights of LGBT people.
The couples were among more than 1,000 couples who sued the federal agency that administers DOMA.
In the ruling, the justices said the agency did not have the authority to determine who is eligible to get marriage licenses, and the couples could file a lawsuit to overturn DOMA if they wanted.
The ruling was expected to have a ripple effect across the country, but was overshadowed by President Donald Trump’s announcement of his intention to end the federal funding of the Obama administration’s healthcare program.
The Obama administration has said that the law’s funding is still available.
In the years leading up to the ruling on Monday, Trump had called for ending the ban and for the states to decide who should get marriage license licenses.
Trump said at a rally on May 31 that he would not be bound by the Supreme Court’s decision.
The federal government, however, is continuing to provide federal marriage benefits to same- gender couples.