Same-sex marriage in Alaska, Wyoming can proceed after court orders