The California Supreme Court on Thursday upheld a $2.5 million discovery sanction against Los Angeles in a case involving a botched utility billing system and a lawsuit contrived to limit the city's losses.