Despite intense lobbying, a dozen Democrats refused to support a bill by Assemblyman Mark Leno, D-San Francisco, that would have allowed tens of thousands of same-sex partners to marry, a controversial act that would have given the couples expanded rights to health care, Social Security, and military benefits.