Original sentence: His legal mandate was to represent the State in any litigation to which it was a party - even if he personally found the State position objectionable - for example, when defending a State employee accused (with justification) of sexual harassment, or, in 2004, asking the courts to invalidate San Francisco marriage licenses granted to same-sex couples, which then conflicted with State law, though Lockyer personally supported gay marriage
Edited sentence: His legal mandate was to represent the State in any litigation to which it was a party - even if he personally found the State position objectionable - for example, when defending a State employee accused (with justification) of sexual harassment; justifying prosecution of a petty thief sentenced to ridiculously long imprisonment under the mandatory "three strikes" law; or, in 2004, asking the courts to invalidate San Francisco same-sex marriage licenses which conflicted with State law, though Lockyer personally supported gay marriage