The U.S. Navy is nearing a first-time agreement to curb electricity use at its sprawling San Diego-area bases if power runs short in Southern California this summer, a deal intended to diminish the threat of blackouts while the troubled San Onofre nuclear plant remains offline.