Stocks close down slightly; BP’s CEO steps down; Google goes to court; and Apple unveils new iPhones.