In a highly anticipated but narrow decision on pensions for teachers and other state and local public employees, the California Supreme Court on Monday upheld the elimination of a retirement benefit in the 2012 pension reform law that then-Gov. Jerry Brown championed.