Military to extend benefits to same-sex partners of service members