A divided U.S. Supreme Court gave a landmark victory to the gay-rights movement, striking down a federal law that denies benefits to same-sex married couples and clearing the way for weddings to resume in California.

The court stopped short of declaring a constitutional right for gays to marry, or even ruling directly on California's voter-approved ban, as the justices considered the issue for the first time. It will take about a month before same-sex marriages could begin in California, according to San Francisco City Attorney Dennis Herrera's office.

The decisions in the two cases sustain the momentum that has grown behind same-sex marriage over the past decade. With a 5-4 procedural ruling in the California case, the court reinstated a trial judge's order allowing at least some gay marriages there. And by invalidating the core of the U.S. Defense of Marriage Act by a different 5-4 majority, the court rejected many of the justifications for treating same-sex and heterosexual couples differently.