In a landmark ruling for gay rights, the Supreme Court on Wednesday struck down the Defense of Marriage Act, the 1996 law blocking federal recognition of same-sex marriages. The decision was 5-4, written by Justice Anthony Kennedy. It said that the law amounted to the “deprivation of the equal liberty of persons that is protected by the Fifth Amendment.” In a separate case, the court ruled that it could not take up a challenge to Proposition 8, the California law that banned gay marriage in that state. That decision means that gay marriage will once again be legal in California. That decision was also 5-4, written by Chief Justice John Roberts. The ruling on the Defense of Marriage Act means that the federal government must recognize the gay marriages deemed legal by the states — 12 plus the District of Columbia, before the California case was decided.