In two landmark decisions Wednesday, the Supreme Court cleared the way for federal recognition of legally married same-sex couples and gave an opening to California that allowed it to resume such unions there.