San Francisco Bay Keeper, an environmental group, reached an agreement on Friday with a storage company it sued two years ago for allegedly polluting San Francisco Bay, violating the Clean Water Act, and endangering the health of wildlife and neighboring communities.