Same-sex couples married in the few states where such unions are legal can obtain divorces in Maryland, the state's highest court ruled Friday.