The government won 58% of cases where it was a party, but suffered key losses on abortion and gun control.