Story highlights

Activists say the decision is "devastating" for the couples who got married

They vow to lobby the national parliament to change federal legislation

For five days, same-sex couples could get married in Australia's capital city of Canberra. Those who did were the first in the country to do so.

But that fleeting window was slammed shut Thursday by the Australian High Court, which ruled that a recent local law legalizing same-sex marriage was invalid.

That means that the marriages of the couples who took advantage of the law to tie the knot -- 27 according to local media -- will be annulled.

"This is devastating for those couples who married this week and for their families," said Rodney Croome, the national director of the advocacy group Australian Marriage Equality. "However, this is just a temporary defeat."

Australian gay rights activists said their fight would now shift to lobbying the national parliament to change federal legislation.

The high court said Thursday that the federal Marriage Act, which doesn't permit same-sex marriage, takes precedence over the law passed by the legislative assembly in Canberra, also known as the Australian Capital Territory.

The lawmakers in the ACT, which has a population of about 380,000 people, would have been aware that their same-sex marriage law wouldn't be allowed to override federal law.

But their move has succeeded in fostering renewed debate on the issue in Australia.