Same-sex couples marry in Michigan shortly before court halts licenses