SAN FRANCISCO — A jury sided with a building management contractor in its dispute with the Administrative Office of the Courts, ordering the AOC to pay $4 million to a contractor it had contended was operating without a license.

The verdict, returned Wednesday, was by a 10-2 vote.